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:
+1
-1
@@ -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!"));
|
||||
|
||||
Reference in New Issue
Block a user