Made the bot not relay his own TOPIC messages.

This commit is contained in:
Jeremy Fincher 2003-10-10 13:37:23 +00:00
parent 48f71bb29c
commit ecbdb0bbbe

View File

@ -538,6 +538,8 @@ class Relay(callbacks.Privmsg):
if self.started:
if not isinstance(irc, irclib.Irc):
irc = irc.getRealIrc()
if msg.nick == irc.nick:
return
newTopic = msg.args[1]
network = self.abbreviations[irc]
s = 'topic change by %s on %s: %s' % (msg.nick, network, newTopic)