pngbot.py:IrcBot.readline(): correctly parse messages w/o a prefix.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-03 00:05:46 +01:00
parent 90d9d146f1
commit c6aa3f9ad9

View File

@ -65,7 +65,7 @@ class IrcBot:
if msg[0][0] == ':':
msg = [msg[0][1:]] + msg[1:]
else:
msg = [""] + msg[1:]
msg = [""] + msg[0:]
return msg
# }}}
# {{{ sendline(): Parse and send single line to server from list