Fixed strange editing error.

This commit is contained in:
Jeremy Fincher 2003-04-20 00:00:37 +00:00
parent eb44d5cfed
commit 85abb8c3bb

View File

@ -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: