summaryrefslogtreecommitdiff
path: root/modules/protocol/ratbox.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-18 01:48:05 -0400
committerAdam <Adam@anope.org>2011-10-18 01:48:05 -0400
commitfaea45245db7d2a84857ba8e5239b9b7e273233e (patch)
treee1d465e609805d89b1cb2bb44a1eb4704f6a1b48 /modules/protocol/ratbox.cpp
parent2c614d5aabc787c0054bdcc813001dabb3e4b0d4 (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/ratbox.cpp')
-rw-r--r--modules/protocol/ratbox.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp
index e5f7a759a..fb65b80b4 100644
--- a/modules/protocol/ratbox.cpp
+++ b/modules/protocol/ratbox.cpp
@@ -598,6 +598,16 @@ class ProtoRatbox : public Module
Implementation i[] = { 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();
}
~ProtoRatbox()