mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Added topic propogation
This commit is contained in:
parent
25e71562d2
commit
e99df4442b
@ -95,7 +95,7 @@ class Relay(callbacks.Privmsg):
|
|||||||
otherIrc.driver.die()
|
otherIrc.driver.die()
|
||||||
del self.ircs[network]
|
del self.ircs[network]
|
||||||
world.ircs.remove(otherIrc)
|
world.ircs.remove(otherIrc)
|
||||||
del abbreviations[network]
|
del self.abbreviations[network]
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
relaydisconnect = privmsgs.checkCapability(relaydisconnect, 'owner')
|
relaydisconnect = privmsgs.checkCapability(relaydisconnect, 'owner')
|
||||||
|
|
||||||
@ -205,14 +205,20 @@ class Relay(callbacks.Privmsg):
|
|||||||
msg.args[1].find('has left on ') != -1 or \
|
msg.args[1].find('has left on ') != -1 or \
|
||||||
msg.args[1].find('has joined on ') != -1):
|
msg.args[1].find('has joined on ') != -1):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
if channel not in self.channels:
|
if channel in self.channels:
|
||||||
return msg
|
|
||||||
abbreviation = self.abbreviations[irc]
|
abbreviation = self.abbreviations[irc]
|
||||||
s = self._formatPrivmsg(irc.nick, abbreviation, msg)
|
s = self._formatPrivmsg(irc.nick, abbreviation, msg)
|
||||||
for otherIrc in self.ircs.itervalues():
|
for otherIrc in self.ircs.itervalues():
|
||||||
if otherIrc != irc:
|
if otherIrc != irc:
|
||||||
if channel in otherIrc.state.channels:
|
if channel in otherIrc.state.channels:
|
||||||
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
elif msg.command == 'TOPIC':
|
||||||
|
(channel, topic) = msg.args
|
||||||
|
if channel in self.channels:
|
||||||
|
for otherIrc in self.ircs.itervalues():
|
||||||
|
if otherIrc != irc:
|
||||||
|
otherIrc.queueMsg(ircmsgs.topic(channel, topic))
|
||||||
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
Class = Relay
|
Class = Relay
|
||||||
|
Loading…
Reference in New Issue
Block a user