1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 18:54:47 +02:00

Fixed caps kicker

(cherry picked from commit efe5fedde9)
This commit is contained in:
Adam
2011-04-15 19:51:34 -04:00
parent 1aa0905241
commit 86ff426642
+1 -1
View File
@@ -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);