1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 14:33:14 +02:00

Fix issues with 'Me' related to previous commit

This commit is contained in:
Adam
2013-07-26 08:45:44 -04:00
parent 2450a64bf4
commit 3dc64bac4d
10 changed files with 53 additions and 52 deletions
+1 -10
View File
@@ -428,15 +428,6 @@ void Anope::Init(int ac, char **av)
/* Write our PID to the PID file. */
write_pidfile();
/* Create me */
Configuration::Block *block = Config->GetBlock("serverinfo");
Me = new Server(NULL, block->Get<const Anope::string>("name"), 0, block->Get<const Anope::string>("description"), block->Get<const Anope::string>("id"));
for (botinfo_map::const_iterator it = BotListByNick->begin(), it_end = BotListByNick->end(); it != it_end; ++it)
{
it->second->server = Me;
++Me->users;
}
/* Announce ourselves to the logfile. */
Log() << "Anope " << Anope::Version() << " starting up" << (Anope::Debug || Anope::ReadOnly ? " (options:" : "") << (Anope::Debug ? " debug" : "") << (Anope::ReadOnly ? " readonly" : "") << (Anope::Debug || Anope::ReadOnly ? ")" : "");
@@ -446,7 +437,7 @@ void Anope::Init(int ac, char **av)
Language::InitLanguages();
/* Initialize random number generator */
block = Config->GetBlock("options");
Configuration::Block *block = Config->GetBlock("options");
srand(block->Get<unsigned>("seed"));
/* load modules */