diff options
author | Adam <Adam@anope.org> | 2011-04-15 19:51:34 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-04-15 19:51:34 -0400 |
commit | efe5fedde900f92663a9e864519334427da4f263 (patch) | |
tree | 58514a86930df07351df53ce44f339888c861f62 | |
parent | c8c684545220e441e6bfabf026ff2a2b33b1a9cd (diff) |
Fixed caps kicker
-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 4d0255cd5..bb6447b17 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -179,7 +179,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, _("Turn caps lock OFF!")); |