Fixed possible uncaught exception bugz0r.

This commit is contained in:
Jeremy Fincher 2004-02-04 08:19:28 +00:00
parent fcb5163527
commit d00935854e

View File

@ -39,6 +39,7 @@ import plugins
import re import re
import sys import sys
import copy
import time import time
from itertools import imap, ifilter from itertools import imap, ifilter
@ -164,7 +165,7 @@ class Relay(callbacks.Privmsg):
abbreviation = privmsgs.getArgs(args) abbreviation = privmsgs.getArgs(args)
self.ircs[abbreviation] = realIrc self.ircs[abbreviation] = realIrc
self.abbreviations[realIrc] = abbreviation self.abbreviations[realIrc] = abbreviation
self.ircstates[realIrc] = irclib.IrcState() self.ircstates[realIrc] = copy.copy(realIrc.state)
self.lastmsg[realIrc] = ircmsgs.ping('this is just a fake message') self.lastmsg[realIrc] = ircmsgs.ping('this is just a fake message')
self.started = True self.started = True
irc.replySuccess() irc.replySuccess()