diff options
author | Adam <Adam@anope.org> | 2011-04-15 19:51:34 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-04-15 19:52:05 -0400 |
commit | 86ff426642a2bdab9f06bfce035cf3e369a3f8ee (patch) | |
tree | 4c11f249da8bac6858dbdb5c1803879fadd00803 | |
parent | 1aa0905241cb4317f486d01fde12c6141f864f0c (diff) |
Fixed caps kicker
(cherry picked from commit efe5fedde900f92663a9e864519334427da4f263)
-rw-r--r-- | src/botserv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/botserv.cpp b/src/botserv.cpp index 5db1f9695..0bf18da56 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -177,7 +177,7 @@ void botchanmsgs(User *u, ChannelInfo *ci, const Anope::string &buf) * percentage of caps to kick for; the rest is ignored. -GD */ - if (i && l && i >= ci->capsmin && i * 100 / (i + l) >= ci->capspercent) + if ((i || l) && i >= ci->capsmin && i * 100 / (i + l) >= ci->capspercent) { check_ban(ci, u, TTB_CAPS); bot_kick(ci, u, BOT_REASON_CAPS); |