1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 12:16:39 +02:00

Fixed a few small things

This commit is contained in:
Adam
2011-06-14 18:23:53 -04:00
parent 1cd65878db
commit df971befb2
7 changed files with 10 additions and 8 deletions
+3 -2
View File
@@ -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);