summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-15 19:51:34 -0400
committerAdam <Adam@anope.org>2011-04-15 19:51:34 -0400
commitefe5fedde900f92663a9e864519334427da4f263 (patch)
tree58514a86930df07351df53ce44f339888c861f62 /src
parentc8c684545220e441e6bfabf026ff2a2b33b1a9cd (diff)
Fixed caps kicker
Diffstat (limited to 'src')
-rw-r--r--src/botserv.cpp2
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!"));