mirror of
https://github.com/anope/anope.git
synced 2026-06-29 01:06:37 +02:00
Remove channels from accesss lists when they expire/drop
This commit is contained in:
@@ -154,6 +154,12 @@ ChanAccess::~ChanAccess()
|
||||
const NickAlias *na = NickAlias::Find(this->mask);
|
||||
if (na != NULL)
|
||||
na->nc->RemoveChannelReference(this->ci);
|
||||
else
|
||||
{
|
||||
ChannelInfo *c = ChannelInfo::Find(this->mask);
|
||||
if (c)
|
||||
c->RemoveChannelReference(this->ci->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user