mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +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))
|
users.append('\x02%s\x02: %s' % (abbreviation, usersS))
|
||||||
irc.reply(msg, '; '.join(users))
|
irc.reply(msg, '; '.join(users))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _formatPrivmsg(self, nick, abbreviation, msg):
|
def _formatPrivmsg(self, nick, abbreviation, msg):
|
||||||
if ircmsgs.isAction(msg):
|
if ircmsgs.isAction(msg):
|
||||||
return '* %s/%s %s' % (nick, abbreviation, ircmsgs.unAction(msg))
|
return '* %s/%s %s' % (nick, abbreviation, ircmsgs.unAction(msg))
|
||||||
@ -217,7 +215,8 @@ class Relay(callbacks.Privmsg):
|
|||||||
if channel in self.channels:
|
if channel in self.channels:
|
||||||
for otherIrc in self.ircs.itervalues():
|
for otherIrc in self.ircs.itervalues():
|
||||||
if otherIrc != irc:
|
if otherIrc != irc:
|
||||||
otherIrc.queueMsg(ircmsgs.topic(channel, topic))
|
if otherIrc.state.getTopic(channel) != topic:
|
||||||
|
otherIrc.queueMsg(ircmsgs.topic(channel, topic))
|
||||||
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user