mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +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:
|
||||
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):
|
||||
if not self.started:
|
||||
return msg
|
||||
|
Loading…
Reference in New Issue
Block a user