summaryrefslogtreecommitdiff
path: root/src/botserv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/botserv.cpp')
-rw-r--r--src/botserv.cpp2
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);