mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Fixed 'let's send a new topic every second' problem.
This commit is contained in:
parent
22490174f3
commit
c42806665b
@ -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,6 +215,7 @@ class Relay(callbacks.Privmsg):
|
||||
if channel in self.channels:
|
||||
for otherIrc in self.ircs.itervalues():
|
||||
if otherIrc != irc:
|
||||
if otherIrc.state.getTopic(channel) != topic:
|
||||
otherIrc.queueMsg(ircmsgs.topic(channel, topic))
|
||||
|
||||
return msg
|
||||
|
Loading…
Reference in New Issue
Block a user