Remove the shared object pointer from the hash after each reload

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5121 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-09-03 00:48:12 +00:00
parent 77f5fb9f0b
commit 1c4abcfda1

View File

@ -510,6 +510,7 @@ bool CommandParser::ReloadCommand(const char* cmd)
delete cmdptr;
dlclose(command->second);
RFCCommands.erase(command);
sprintf(filename, "cmd_%s.so", commandname);
this->LoadCommand(filename);