mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
unreal: TOPIC inbound handler (#104)
This commit is contained in:
parent
00a6008078
commit
399f89900b
@ -364,4 +364,16 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
utils.applyModes(self.irc, numeric, parsedmodes)
|
||||
return {'target': numeric, 'modes': parsedmodes}
|
||||
|
||||
def handle_topic(self, numeric, command, args):
|
||||
"""Handles the TOPIC command."""
|
||||
# <- GL TOPIC #services GL 1444699395 :weeee
|
||||
channel = utils.toLower(self.irc, args[0])
|
||||
topic = args[-1]
|
||||
ts = args[2]
|
||||
oldtopic = self.irc.channels[channel].topic
|
||||
self.irc.channels[channel].topic = topic
|
||||
self.irc.channels[channel].topicset = True
|
||||
return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic,
|
||||
'oldtopic': oldtopic}
|
||||
|
||||
Class = UnrealProtocol
|
||||
|
Loading…
Reference in New Issue
Block a user