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

Fix access lists showing the wrong mask if the display nick for a group

expires but the group still exists. This can cause access entries for
nicks to not be deleted whenever the nicks are deleted.
This commit is contained in:
Adam
2014-05-14 19:10:23 -04:00
parent 1931fcf0e5
commit df321a118e
12 changed files with 106 additions and 76 deletions
+1 -15
View File
@@ -143,8 +143,7 @@ ChannelInfo::ChannelInfo(const ChannelInfo &ci) : Serializable("ChannelInfo"),
AccessProvider *provider = taccess->provider;
ChanAccess *newaccess = provider->Create();
newaccess->ci = this;
newaccess->mask = taccess->mask;
newaccess->SetMask(taccess->Mask(), this);
newaccess->creator = taccess->creator;
newaccess->last_seen = taccess->last_seen;
newaccess->created = taccess->created;
@@ -399,19 +398,6 @@ BotInfo *ChannelInfo::WhoSends() const
void ChannelInfo::AddAccess(ChanAccess *taccess)
{
this->access->push_back(taccess);
const NickAlias *na = NickAlias::Find(taccess->mask);
if (na != NULL)
{
na->nc->AddChannelReference(this);
taccess->nc = na->nc;
}
else
{
ChannelInfo *ci = ChannelInfo::Find(taccess->mask);
if (ci != NULL)
ci->AddChannelReference(this->name);
}
}
ChanAccess *ChannelInfo::GetAccess(unsigned index) const