mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
pngbot.py: convert to lower case when comparing channel names.
This commit is contained in:
parent
5f4aa470b9
commit
b94d3afdb5
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user