From c42806665b3af18bcf91a4b908e5b9a72b01e8f6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 28 Mar 2003 07:10:23 +0000 Subject: [PATCH] Fixed 'let's send a new topic every second' problem. --- plugins/Relay.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 34da139e7..01c60fba0 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -135,8 +135,6 @@ class Relay(callbacks.Privmsg): users.append('\x02%s\x02: %s' % (abbreviation, usersS)) irc.reply(msg, '; '.join(users)) - - def _formatPrivmsg(self, nick, abbreviation, msg): if ircmsgs.isAction(msg): return '* %s/%s %s' % (nick, abbreviation, ircmsgs.unAction(msg)) @@ -217,7 +215,8 @@ class Relay(callbacks.Privmsg): if channel in self.channels: for otherIrc in self.ircs.itervalues(): if otherIrc != irc: - otherIrc.queueMsg(ircmsgs.topic(channel, topic)) + if otherIrc.state.getTopic(channel) != topic: + otherIrc.queueMsg(ircmsgs.topic(channel, topic)) return msg