summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-25 02:26:00 -0500
committerAdam <Adam@anope.org>2010-12-25 02:26:00 -0500
commit821995bf604b5c6e18e6c0c93a31e149565160c8 (patch)
tree5b72b437f31e8fb96a45d6ec2ca73ad95185766e /src/modules.cpp
parent673f6cb2f97d861e08d363cfa09d3022f1322389 (diff)
Properly remove commands from bots when they are destructed, and run privmsgs for bots we know of but aren't the core
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 1fc83c06e..c5c964e61 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -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;
}