summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 10:46:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 10:46:02 +0000
commit91dd2d5f19996d163c477eb2907031d226092e23 (patch)
tree55d3e9910762e79786b6ab2d7b35ff7be5318b30
parentd056a72dce79f6c62055d44707a25c2b5d5c7bde (diff)
Changed to use CommandParser for RemoveCommands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2517 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index aee1666d0..08946ddd2 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -92,7 +92,7 @@ userrec* fd_ref_table[65536];
serverstats* stats = new serverstats;
Server* MyServer = new Server;
ServerConfig *Config = new ServerConfig;
-CommandParser *Parser = new CommandParser;
+CommandParser *Parser = NULL;
user_hash clientlist;
chan_hash chanlist;
@@ -188,7 +188,8 @@ InspIRCd::InspIRCd(int argc, char** argv)
Config->ClearStack();
Config->Read(true,NULL);
CheckRoot();
- SetupCommandTable();
+ Parser = new CommandParser;
+ Parser->SetupCommandTable();
AddServerName(Config->ServerName);
CheckDie();
stats->BoundPortCount = BindPorts();
@@ -304,7 +305,7 @@ bool InspIRCd::UnloadModule(const char* filename)
log(DEBUG,"Erasing module entry...");
erase_factory(j);
log(DEBUG,"Removing dependent commands...");
- remove_commands(filename);
+ Parser->RemoveCommands(filename);
log(DEFAULT,"Module %s unloaded",filename);
MODCOUNT--;
return true;