1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 23:16:39 +02:00

Properly remove commands from bots when they are destructed, and run privmsgs for bots we know of but aren't the core

This commit is contained in:
Adam
2010-12-25 02:26:00 -05:00
parent 673f6cb2f9
commit 821995bf60
3 changed files with 14 additions and 3 deletions
+3
View File
@@ -173,6 +173,9 @@ int Module::DelCommand(BotInfo *bi, Command *c)
if (!bi->Commands.erase(c->name))
return MOD_ERR_NOEXIST;
c->module = NULL;
c->service = NULL;
return MOD_ERR_OK;
}