diff options
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 51be95db9..f48a90228 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -66,7 +66,7 @@ BotInfo::~BotInfo() // If we're synchronised with the uplink already, send the bot. if (Me && Me->IsSynced()) { - ircdproto->SendQuit(this, NULL); + ircdproto->SendQuit(this, ""); XLine x(this->nick); ircdproto->SendSQLineDel(&x); } @@ -79,9 +79,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); |