mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
plugin/Topic: Keep track of what the channel's topic is when we join so that we can undo the first topic change.
This commit is contained in:
parent
4e4c23a781
commit
e4242ba994
@ -168,6 +168,9 @@ class Topic(callbacks.Plugin):
|
||||
def do332(self, irc, msg):
|
||||
if msg.args[1] in self.watchingFor332:
|
||||
self.watchingFor332.remove(msg.args[1])
|
||||
# Store an undo for the topic when we join a channel. This allows
|
||||
# us to undo the first topic change that takes place in a channel.
|
||||
self._addUndo(msg.args[1], [msg.args[2]])
|
||||
|
||||
def topic(self, irc, msg, args, channel):
|
||||
"""[<channel>]
|
||||
|
Loading…
Reference in New Issue
Block a user