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