summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-26 08:45:44 -0400
committerAdam <Adam@anope.org>2013-07-26 08:45:44 -0400
commit3dc64bac4d436ba27683270b88c0cc5bfa346acc (patch)
treeaa1dd95d1c5d4618c06cb8662d9d888c0e5793c8 /src/init.cpp
parent2450a64bf4dc55635c9f4c1c829f149dc6621b41 (diff)
Fix issues with 'Me' related to previous commit
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/init.cpp b/src/init.cpp
index d76a631f5..e8ee21b19 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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 */