From b94d3afdb5c4c659061dcb72f1556d10836357f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Tue, 2 Jan 2018 21:54:02 +0100 Subject: [PATCH] pngbot.py: convert to lower case when comparing channel names. --- pngbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pngbot.py b/pngbot.py index 8a6a45e..afddc1a 100755 --- a/pngbot.py +++ b/pngbot.py @@ -102,8 +102,8 @@ def main(argv0, ircServerHname, ircServerPort="6667", ircClientNick="pngbot", ir _IrcBot.sendline("JOIN", ircClientChannel) elif ircServerMessage[1] == "PING": _IrcBot.sendline("PONG", ircServerMessage[2]) - elif ircServerMessage[1] == "PRIVMSG" \ - and ircServerMessage[2] == ircClientChannel \ + elif ircServerMessage[1] == "PRIVMSG" \ + and ircServerMessage[2].lower() == ircClientChannel.lower() \ and ircServerMessage[3].startswith("!pngbot "): asciiUrl = ircServerMessage[3].split(" ")[1] asciiTmpFilePath = "tmp.txt"; imgTmpFilePath = "tmp.png";