Fix never reached condition
This commit is contained in:
parent
0219941d08
commit
aaddfb5a93
@ -30,11 +30,12 @@ def on_privmsg(cli, rawnick, chan, msg, notice = False):
|
|||||||
try:
|
try:
|
||||||
getattr(var, "CASEMAPPING")
|
getattr(var, "CASEMAPPING")
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
var.CASEMAPPING = "rfc1459"
|
if notice and "!" not in rawnick and chan in ("*", "AUTH"):
|
||||||
|
# On-connect message before RPL_ISUPPORT is sent.
|
||||||
|
return
|
||||||
|
|
||||||
if not (notice and "!" not in rawnick and chan in ("*", "AUTH")):
|
log("Server did not send a case mapping; falling back to rfc1459.")
|
||||||
# Not an on-connect message before RPL_ISUPPORT.
|
var.CASEMAPPING = "rfc1459"
|
||||||
log("Server did not send a case mapping; falling back to rfc1459.")
|
|
||||||
|
|
||||||
if (notice and ((not var.irc_equals(chan, botconfig.NICK) and not botconfig.ALLOW_NOTICE_COMMANDS) or
|
if (notice and ((not var.irc_equals(chan, botconfig.NICK) and not botconfig.ALLOW_NOTICE_COMMANDS) or
|
||||||
(var.irc_equals(chan, botconfig.NICK) and not botconfig.ALLOW_PRIVATE_NOTICE_COMMANDS))):
|
(var.irc_equals(chan, botconfig.NICK) and not botconfig.ALLOW_PRIVATE_NOTICE_COMMANDS))):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user