summaryrefslogtreecommitdiff
path: root/src/access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-11 17:14:39 -0400
committerAdam <Adam@anope.org>2013-08-11 17:14:39 -0400
commitf1956b039d3c7be38ad03fbb79be6a4eed440cf0 (patch)
tree483b29cf3c67af4742945213eb88a173ae5b6d6a /src/access.cpp
parent53d5b7c29ea2f0164b562549cef579fe2b276abf (diff)
Remove channels from accesss lists when they expire/drop
Diffstat (limited to 'src/access.cpp')
-rw-r--r--src/access.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/access.cpp b/src/access.cpp
index 173f3c979..985b69390 100644
--- a/src/access.cpp
+++ b/src/access.cpp
@@ -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);
+ }
}
}