From 4ab0bd3a8e218fe62c109b8f72326ddb71b556ea Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 25 Apr 2011 22:44:33 -0400 Subject: Fixed a crash when certain nicks expired --- src/chanserv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit