Fix case-sensitiveness on weird IRCds

This commit is contained in:
Vgr E. Barry 2016-11-08 17:04:19 -05:00
parent 8039b5e2a1
commit 52b28b4317

View File

@ -15,7 +15,7 @@ def on_privmsg(cli, rawnick, chan, msg, *, notice=False):
if notice and "!" not in rawnick or not rawnick: # server notice; we don't care about those if notice and "!" not in rawnick or not rawnick: # server notice; we don't care about those
return return
if chan != botconfig.NICK and botconfig.IGNORE_HIDDEN_COMMANDS and not chan.startswith(tuple(hooks.Features["CHANTYPES"])): if not users.equals(chan, botconfig.NICK) and botconfig.IGNORE_HIDDEN_COMMANDS and not chan.startswith(tuple(hooks.Features["CHANTYPES"])):
return return
if (notice and ((not users.equals(chan, botconfig.NICK) and not botconfig.ALLOW_NOTICE_COMMANDS) or if (notice and ((not users.equals(chan, botconfig.NICK) and not botconfig.ALLOW_NOTICE_COMMANDS) or