mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +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:
parent
5f2da1c8c3
commit
fde7860fc7
@ -585,9 +585,9 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
|
|
||||||
def handle_tb(self, numeric, command, args):
|
def handle_tb(self, numeric, command, args):
|
||||||
"""Handles incoming topic burst (TB) commands."""
|
"""Handles incoming topic burst (TB) commands."""
|
||||||
# <- :42X TB 1434510754 #channel GLo|o|!GLolol@escape.the.dreamland.ca :Some channel topic
|
# <- :42X TB #chat 1467427448 GL!~gl@127.0.0.1 :test
|
||||||
channel = args[1].lower()
|
channel = args[0].lower()
|
||||||
ts = args[0]
|
ts = args[1]
|
||||||
setter = args[2]
|
setter = args[2]
|
||||||
topic = args[-1]
|
topic = args[-1]
|
||||||
self.irc.channels[channel].topic = topic
|
self.irc.channels[channel].topic = topic
|
||||||
|
Loading…
Reference in New Issue
Block a user