mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 12:42:34 +01:00
ts6_common: make old topic retrievable in handle_topic
This commit is contained in:
parent
31aa624a94
commit
9c4e0107f3
@ -224,9 +224,11 @@ class TS6BaseProtocol(Protocol):
|
|||||||
channel = utils.toLower(self.irc, args[0])
|
channel = utils.toLower(self.irc, args[0])
|
||||||
topic = args[1]
|
topic = args[1]
|
||||||
ts = int(time.time())
|
ts = int(time.time())
|
||||||
|
oldtopic = self.irc.channels[channel].topic
|
||||||
self.irc.channels[channel].topic = topic
|
self.irc.channels[channel].topic = topic
|
||||||
self.irc.channels[channel].topicset = True
|
self.irc.channels[channel].topicset = True
|
||||||
return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic}
|
return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic,
|
||||||
|
'oldtopic': oldtopic}
|
||||||
|
|
||||||
def handle_part(self, source, command, args):
|
def handle_part(self, source, command, args):
|
||||||
"""Handles incoming PART commands."""
|
"""Handles incoming PART commands."""
|
||||||
|
Loading…
Reference in New Issue
Block a user