From e7e6c616d56dd98a0521af537dc1ba155809653a Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 15 Dec 2008 00:40:07 +0000 Subject: Fix this properly, the way I should have done initially.. only load RFC commands on startup, avoids needless "leak fix" which crashes things on config reload. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10887 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 1ca24fcb3..2ee7daa8e 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -552,14 +552,6 @@ const char* CommandParser::LoadCommand(const char* name) void CommandParser::SetupCommandTable(userrec* user) { - for (SharedObjectList::iterator command = RFCCommands.begin(); command != RFCCommands.end(); command++) - { - command_t *cmdptr = cmdlist.find(command->first)->second; - cmdlist.erase(cmdlist.find(command->first)); - RFCCommands.erase(command); - delete cmdptr; - } - if (!user) { printf("\nLoading core commands"); -- cgit v1.3.1-10-gc9f91