summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
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);
}
}