diff options
author | Adam <Adam@anope.org> | 2011-08-09 17:14:23 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-09 17:14:23 -0400 |
commit | 6574bca40419c877e9fdebf76f75035db608f8e4 (patch) | |
tree | 774333c92a0794ef0a219a4b7fc9f842fbfd31ce /src/bots.cpp | |
parent | ae72c25e1dbc674f05891d0fdf15f425089f7a3b (diff) |
Fixed destructing bots with commands and fixed quitting services enforcers
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 95a5c2aa5..a09224be8 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -80,9 +80,10 @@ BotInfo::~BotInfo() ci->bi = NULL; } - for (CommandMap::const_iterator it = this->Commands.begin(), it_end = this->Commands.end(); it != it_end; ++it) + for (CommandMap::const_iterator it = this->Commands.begin(), it_end = this->Commands.end(); it != it_end;) { Command *c = it->second; + ++it; if (c->module) c->module->DelCommand(this, c); |