mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +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 self.started:
|
||||||
if not isinstance(irc, irclib.Irc):
|
if not isinstance(irc, irclib.Irc):
|
||||||
irc = irc.getRealIrc()
|
irc = irc.getRealIrc()
|
||||||
|
if msg.nick == irc.nick:
|
||||||
|
return
|
||||||
newTopic = msg.args[1]
|
newTopic = msg.args[1]
|
||||||
network = self.abbreviations[irc]
|
network = self.abbreviations[irc]
|
||||||
s = 'topic change by %s on %s: %s' % (msg.nick, network, newTopic)
|
s = 'topic change by %s on %s: %s' % (msg.nick, network, newTopic)
|
||||||
|
Loading…
Reference in New Issue
Block a user