1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 21:26:37 +02:00

Fixed destructing bots with commands and fixed quitting services enforcers

This commit is contained in:
Adam
2011-08-09 17:14:23 -04:00
parent ae72c25e1d
commit 6574bca404
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);
+1 -1
View File
@@ -67,7 +67,7 @@ NickServRelease::~NickServRelease()
{
NickServReleases.erase(this->nick);
ircdproto->SendQuit(this, NULL);
ircdproto->SendQuit(this, "");
}
void NickServRelease::Tick(time_t)