mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fixed strange editing error.
This commit is contained in:
parent
eb44d5cfed
commit
85abb8c3bb
@ -146,6 +146,7 @@ class Relay(callbacks.Privmsg):
|
|||||||
port = 6667
|
port = 6667
|
||||||
newIrc = irclib.Irc(irc.nick, callbacks=irc.callbacks)
|
newIrc = irclib.Irc(irc.nick, callbacks=irc.callbacks)
|
||||||
driver = drivers.newDriver((server, port), newIrc)
|
driver = drivers.newDriver((server, port), newIrc)
|
||||||
|
newIrc.driver = driver
|
||||||
self.ircs[abbreviation] = newIrc
|
self.ircs[abbreviation] = newIrc
|
||||||
self.abbreviations[newIrc] = abbreviation
|
self.abbreviations[newIrc] = abbreviation
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
@ -237,6 +238,8 @@ class Relay(callbacks.Privmsg):
|
|||||||
s = self._formatPrivmsg(msg.nick, abbreviation, msg)
|
s = self._formatPrivmsg(msg.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:
|
||||||
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
def doJoin(self, irc, msg):
|
def doJoin(self, irc, msg):
|
||||||
if self.started:
|
if self.started:
|
||||||
|
Loading…
Reference in New Issue
Block a user