From 274658f955b47b379b5f10e837623332ab6fc6d2 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 Mar 2017 21:14:32 -0400 Subject: Fix autokick destructor to properly remove channel references from accounts --- src/regchannel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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); } } -- cgit