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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user