From 91dd2d5f19996d163c477eb2907031d226092e23 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 10:46:02 +0000 Subject: Changed to use CommandParser for RemoveCommands git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2517 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/inspircd.cpp') 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; -- cgit v1.2.3