mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added nick and mode propogation
This commit is contained in:
parent
2806ec0a69
commit
f9cdb62725
@ -191,6 +191,30 @@ class Relay(callbacks.Privmsg):
|
|||||||
if channel in otherIrc.state.channels:
|
if channel in otherIrc.state.channels:
|
||||||
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
|
def doMode(self, irc, msg):
|
||||||
|
if self.started:
|
||||||
|
if not isinstance(irc, irclib.Irc):
|
||||||
|
irc = irc.getRealIrc()
|
||||||
|
channel = msg.args[0]
|
||||||
|
if channel in self.channels:
|
||||||
|
abbreviation = self.abbreviations[irc]
|
||||||
|
s = 'mode change on %s/%s %s' % \
|
||||||
|
(channel, abbreviation, ' '.join(msg.args[1:]))
|
||||||
|
for otherIrc in self.ircs.itervalues():
|
||||||
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
|
def doNick(self, irc, msg):
|
||||||
|
if self.started:
|
||||||
|
if not isinstance(irc, irclib.Irc):
|
||||||
|
irc = irc.getRealIrc()
|
||||||
|
s = 'nick change by %s to %s' % (msg.prefix, msg.args[0])
|
||||||
|
for otherIrc in self.ircs.itervalues():
|
||||||
|
for channel in self.channels:
|
||||||
|
if channel in otherIrc.state.channels:
|
||||||
|
chan = otherIrc.state.channels[channel]
|
||||||
|
if msg.nick in chan.users:
|
||||||
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
def outFilter(self, irc, msg):
|
def outFilter(self, irc, msg):
|
||||||
if not isinstance(irc, irclib.Irc):
|
if not isinstance(irc, irclib.Irc):
|
||||||
irc = irc.getRealIrc()
|
irc = irc.getRealIrc()
|
||||||
|
Loading…
Reference in New Issue
Block a user