diff options
| author | Adam <Adam@anope.org> | 2011-10-18 01:48:05 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-10-18 01:48:05 -0400 |
| commit | faea45245db7d2a84857ba8e5239b9b7e273233e (patch) | |
| tree | e1d465e609805d89b1cb2bb44a1eb4704f6a1b48 /modules/protocol/inspircd20.cpp | |
| parent | 2c614d5aabc787c0054bdcc813001dabb3e4b0d4 (diff) | |
Reorder some stuff in Init & the ts6 proto mods to fix weirdness from bots being introduced by 3rd party modules
Diffstat (limited to 'modules/protocol/inspircd20.cpp')
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 6586044aa..23924a2cc 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -771,6 +771,16 @@ class ProtoInspIRCd : public Module Implementation i[] = { I_OnUserNickChange, I_OnServerSync }; ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); + + if (Config->Numeric.empty()) + { + Anope::string numeric = ts6_sid_retrieve(); + Me->SetSID(numeric); + Config->Numeric = numeric; + } + + for (botinfo_map::iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + it->second->GenerateUID(); } ~ProtoInspIRCd() |
