1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 23:13:12 +02:00

Fixed crash when certain nicks expire

This commit is contained in:
Adam
2011-04-25 15:58:46 -04:00
parent 4a733c93d4
commit 0cdc628db0
3 changed files with 13 additions and 13 deletions
+2 -1
View File
@@ -406,9 +406,10 @@ void expire_chans()
// XXX this is slightly inefficient
void cs_remove_nick(NickCore *nc)
{
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 != RegisteredChannelList.end();)
{
ChannelInfo *ci = it->second;
++it;
ChanAccess *access = ci->GetAccess(nc);
if (access)