summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-04 02:19:20 -0500
committerAdam <Adam@anope.org>2011-03-04 02:19:20 -0500
commitdd968c07be608d391bc02faa1266d25240e82e58 (patch)
tree3b383376a452ca2e02724949dc13dd5b840103bb
parentfeb81c51d28b4e543730e7de6a577ef7561d4dac (diff)
Fixed some logic fail when detecting who should be akicked
-rw-r--r--src/regchannel.cpp7
1 files 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);