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:
+2
-1
@@ -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
@@ -67,7 +67,7 @@ NickServRelease::~NickServRelease()
|
||||
{
|
||||
NickServReleases.erase(this->nick);
|
||||
|
||||
ircdproto->SendQuit(this, NULL);
|
||||
ircdproto->SendQuit(this, "");
|
||||
}
|
||||
|
||||
void NickServRelease::Tick(time_t)
|
||||
|
||||
Reference in New Issue
Block a user