mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Made the bot not relay his own TOPIC messages.
This commit is contained in:
parent
48f71bb29c
commit
ecbdb0bbbe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user