mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Added QUIT propogation
This commit is contained in:
parent
b61539ad46
commit
f0cfa30eee
@ -216,6 +216,21 @@ class Relay(callbacks.Privmsg):
|
|||||||
if otherIrc != irc:
|
if otherIrc != irc:
|
||||||
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
|
def doQuit(self, irc, msg):
|
||||||
|
if self.started:
|
||||||
|
if not isinstance(irc, irclib.Irc):
|
||||||
|
irc = irc.getRealIrc()
|
||||||
|
network = self.abbreviations[irc]
|
||||||
|
if len(msg.args) > 0:
|
||||||
|
s = '%s/%s has quit (%s)' % (msg.nick, network, msg.args[0])
|
||||||
|
else:
|
||||||
|
s = '%s/%s has quit.' % (msg.nick, network)
|
||||||
|
for channel in self.channels:
|
||||||
|
if msg.nick in irc.state.channels[channel].users:
|
||||||
|
for otherIrc in self.ircs.itervalues():
|
||||||
|
if otherIrc != irc:
|
||||||
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
def outFilter(self, irc, msg):
|
def outFilter(self, irc, msg):
|
||||||
if not self.started:
|
if not self.started:
|
||||||
return msg
|
return msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user