diff options
author | Adam <Adam@anope.org> | 2011-06-14 18:23:53 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-06-14 18:23:53 -0400 |
commit | df971befb2ec95d69b7bb5bce49f4105ee916c2a (patch) | |
tree | 35b2a04ca610af184f01f0d1e250d3ff4bdf9a43 /src/bots.cpp | |
parent | 1cd65878dbdae1d64f70522c3586897a9a7adc36 (diff) |
Fixed a few small things
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); |