diff options
author | Adam <Adam@anope.org> | 2011-08-09 17:14:23 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-09 17:14:23 -0400 |
commit | 6574bca40419c877e9fdebf76f75035db608f8e4 (patch) | |
tree | 774333c92a0794ef0a219a4b7fc9f842fbfd31ce | |
parent | ae72c25e1dbc674f05891d0fdf15f425089f7a3b (diff) |
Fixed destructing bots with commands and fixed quitting services enforcers
-rw-r--r-- | src/bots.cpp | 3 | ||||
-rw-r--r-- | src/nickserv.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 95a5c2aa5..a09224be8 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -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); diff --git a/src/nickserv.cpp b/src/nickserv.cpp index 396c55c53..1c3221f13 100644 --- a/src/nickserv.cpp +++ b/src/nickserv.cpp @@ -67,7 +67,7 @@ NickServRelease::~NickServRelease() { NickServReleases.erase(this->nick); - ircdproto->SendQuit(this, NULL); + ircdproto->SendQuit(this, ""); } void NickServRelease::Tick(time_t) |