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

Fixed generating sid on startup

This commit is contained in:
Adam
2011-08-07 17:43:23 -04:00
parent 35588cc521
commit 25e3408ff6
7 changed files with 19 additions and 12 deletions
+6
View File
@@ -403,6 +403,12 @@ void Init(int ac, char **av)
else if (ModuleManager::FindFirstOf(ENCRYPTION) == NULL)
throw FatalException("You must load at least one encryption module");
if (ircd->ts6 && 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();