diff options
| author | 2008-12-15 00:40:07 +0000 | |
|---|---|---|
| committer | 2008-12-15 00:40:07 +0000 | |
| commit | e7e6c616d56dd98a0521af537dc1ba155809653a (patch) | |
| tree | 578a23a27982016c3dd359e57c66058eff504e12 /src/command_parse.cpp | |
| parent | Add missing argument to time() - it doesn't work like SI::Time().. (diff) | |
| download | inspircd++-e7e6c616d56dd98a0521af537dc1ba155809653a.tar.gz inspircd++-e7e6c616d56dd98a0521af537dc1ba155809653a.tar.bz2 inspircd++-e7e6c616d56dd98a0521af537dc1ba155809653a.zip | |
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
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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"); |
