From e4242ba994a271df37f39ff3a1cd11f32c9bdf57 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 19 May 2005 17:21:44 +0000 Subject: [PATCH] plugin/Topic: Keep track of what the channel's topic is when we join so that we can undo the first topic change. --- plugins/Topic/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Topic/plugin.py b/plugins/Topic/plugin.py index 9909cd4ff..e18042c52 100644 --- a/plugins/Topic/plugin.py +++ b/plugins/Topic/plugin.py @@ -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): """[]