3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

ts6: fix wrong args in TB handling

I'm not sure where I got that example from. It's wrong.
This commit is contained in:
James Lu 2016-07-01 19:45:13 -07:00
parent 5f2da1c8c3
commit fde7860fc7

View File

@ -585,9 +585,9 @@ class TS6Protocol(TS6BaseProtocol):
def handle_tb(self, numeric, command, args):
"""Handles incoming topic burst (TB) commands."""
# <- :42X TB 1434510754 #channel GLo|o|!GLolol@escape.the.dreamland.ca :Some channel topic
channel = args[1].lower()
ts = args[0]
# <- :42X TB #chat 1467427448 GL!~gl@127.0.0.1 :test
channel = args[0].lower()
ts = args[1]
setter = args[2]
topic = args[-1]
self.irc.channels[channel].topic = topic