1
0
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:
Adam
2013-08-11 17:14:39 -04:00
parent 53d5b7c29e
commit f1956b039d
4 changed files with 63 additions and 0 deletions
+6
View File
@@ -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);
}
}
}