From efe5fedde900f92663a9e864519334427da4f263 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 15 Apr 2011 19:51:34 -0400 Subject: [PATCH] Fixed caps kicker --- src/botserv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!"));