From d00935854e020dd4d9b438201563d1b00b4a8c09 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 4 Feb 2004 08:19:28 +0000 Subject: [PATCH] Fixed possible uncaught exception bugz0r. --- plugins/Relay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 43a5fb091..0beab6c2c 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -39,6 +39,7 @@ import plugins import re import sys +import copy import time from itertools import imap, ifilter @@ -164,7 +165,7 @@ class Relay(callbacks.Privmsg): abbreviation = privmsgs.getArgs(args) self.ircs[abbreviation] = realIrc 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.started = True irc.replySuccess()