summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-12-26 09:36:45 +0100
committerDukePyrolator <DukePyrolator@anope.org>2010-12-26 09:36:45 +0100
commitf638d1078ab5ab630ce9393fe87edd630abdf75a (patch)
tree2afbda6b0a653324657e41d3ddc8a698a37e3b29 /src/bots.cpp
parent4235df2b28a26cb166a250d016f1fd9b417cb94b (diff)
parent8af2465a61b09e020c1324acfb78bbf912869fc8 (diff)
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 87a646923..07ea91b3a 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -72,6 +72,14 @@ BotInfo::~BotInfo()
ci->bi = NULL;
}
+ for (CommandMap::const_iterator it = this->Commands.begin(), it_end = this->Commands.end(); it != it_end; ++it)
+ {
+ Command *c = it->second;
+
+ if (c->module)
+ c->module->DelCommand(this, c);
+ }
+
BotListByNick.erase(this->nick);
if (!this->uid.empty())
BotListByUID.erase(this->uid);