1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 11:06:37 +02:00

Reorder some stuff in Init & the ts6 proto mods to fix weirdness from bots being introduced by 3rd party modules

This commit is contained in:
Adam
2011-10-18 01:48:05 -04:00
parent 2c614d5aab
commit faea45245d
5 changed files with 46 additions and 16 deletions
+10
View File
@@ -673,6 +673,16 @@ class ProtoPlexus : 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();
}
~ProtoPlexus()