diff options
author | Adam <Adam@anope.org> | 2010-07-10 21:18:22 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-07-10 21:18:22 -0400 |
commit | a49521302628982f62ddadd997a81734f4d8c84f (patch) | |
tree | 22f14500849a1035d9af5c4a909624026ddb2209 /src/init.cpp | |
parent | fa622aae38b7aa11ecab78412e91e262ae6fb3e3 (diff) |
Properly set up our clients as on our server internally. Fixes crashes when trying to akick our own clients etc
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index b0f019ad3..6ea0cab35 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -318,6 +318,9 @@ int init_primary(int ac, char **av) /* Add IRCD Protocol Module; exit if there are errors */ if (protocol_module_init()) return -1; + + /* Create me */ + Me = new Server(NULL, Config.ServerName, 0, Config.ServerDesc, (Config.Numeric ? Config.Numeric : "")); /* First thing, add our core bots internally. Before modules are loaded and before the database is read * This is used for modules adding commands and for the BotInfo* poiners in the command classes. |