From f166ce86559001f9541d68714df5ac048e3b1392 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 30 Mar 2004 07:58:22 +0000 Subject: [PATCH] Removed ConfigIrcProxy, I forgot we didn't use it anymore. --- src/callbacks.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 27865c8f1..3a99c8050 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -646,33 +646,6 @@ class CommandThread(threading.Thread): self.cb.threaded = self.originalThreaded -class ConfigIrcProxy(RichReplyMethods): - """Used as a proxy Irc object during configuration. """ - def __init__(self, irc): - self.__dict__['irc'] = irc - - def reply(self, s, *args, **kwargs): - assert not isinstance(s, ircmsgs.IrcMsg), \ - 'Old code alert: there is no longer a "msg" argument to reply.' - return None - - def error(self, s, *args, **kwargs): - log.warning('ConfigIrcProxy saw an error: %s' % s) - - def getRealIrc(self): - irc = self.__dict__['irc'] - if hasattr(irc, 'getRealIrc'): - return irc.getRealIrc() - else: - return irc - - def __getattr__(self, attr): - return getattr(self.getRealIrc(), attr) - - def __setattr__(self, attr, value): - setattr(self.getRealIrc(), attr, value) - - class Privmsg(irclib.IrcCallback): """Base class for all Privmsg handlers.""" __metaclass__ = log.MetaFirewall