1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 09:36:38 +02:00

Fixed caps kicker

This commit is contained in:
Adam
2011-04-15 19:51:34 -04:00
parent c8c6845452
commit efe5fedde9
+1 -1
View File
@@ -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!"));