diff options
author | Adam <Adam@anope.org> | 2011-03-04 02:19:20 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-04 02:19:20 -0500 |
commit | dd968c07be608d391bc02faa1266d25240e82e58 (patch) | |
tree | 3b383376a452ca2e02724949dc13dd5b840103bb /src | |
parent | feb81c51d28b4e543730e7de6a577ef7561d4dac (diff) |
Fixed some logic fail when detecting who should be akicked
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 7 |
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); |