diff options
author | Adam <Adam@anope.org> | 2011-04-25 22:44:33 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-04-25 22:44:33 -0400 |
commit | 4ab0bd3a8e218fe62c109b8f72326ddb71b556ea (patch) | |
tree | 8e804c691c7141d0abfeb1ff8dc264833dc09a1c | |
parent | 68b1abc6f75c3c61f72f205ba5fe59e699880d33 (diff) |
Fixed a crash when certain nicks expired
-rw-r--r-- | src/chanserv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp index 9b3f7f596..e15cc0551 100644 --- a/src/chanserv.cpp +++ b/src/chanserv.cpp @@ -451,9 +451,10 @@ void cs_remove_nick(const NickCore *nc) ChanAccess *ca; AutoKick *akick; - for (registered_channel_map::const_iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end; ++it) + for (registered_channel_map::const_iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end;) { ChannelInfo *ci = it->second; + ++it; if (ci->founder == nc) { |