diff options
Diffstat (limited to 'src/chanserv.cpp')
-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) { |