summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-03-27 21:14:32 -0400
committerAdam <Adam@anope.org>2017-03-27 21:14:32 -0400
commit274658f955b47b379b5f10e837623332ab6fc6d2 (patch)
tree1a22d3b4e9b15442199b9bd91292f628a62a535c /src/regchannel.cpp
parent7621306f4bbc5e105328afb0a2070ad702e07e3d (diff)
Fix autokick destructor to properly remove channel references from accounts
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 8bbd5d1a6..98c3144e4 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -33,9 +33,8 @@ AutoKick::~AutoKick()
if (it != this->ci->akick->end())
this->ci->akick->erase(it);
- const NickAlias *na = NickAlias::Find(this->mask);
- if (na != NULL)
- na->nc->RemoveChannelReference(this->ci);
+ if (nc != NULL)
+ nc->RemoveChannelReference(this->ci);
}
}