From dd968c07be608d391bc02faa1266d25240e82e58 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 4 Mar 2011 02:19:20 -0500 Subject: [PATCH] Fixed some logic fail when detecting who should be akicked --- src/regchannel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/regchannel.cpp b/src/regchannel.cpp index f9e9aed96..e0f0c742c 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -768,8 +768,11 @@ bool ChannelInfo::CheckKick(User *user) { AutoKick *autokick = this->GetAkick(j); - if (autokick->HasFlag(AK_ISNICK) && autokick->nc == nc) - do_kick = true; + if (autokick->HasFlag(AK_ISNICK)) + { + if (autokick->nc == nc) + do_kick = true; + } else { Entry akick_mask(autokick->mask);