From 8bbed5a90e56d4b3f90d0481c2a7c50c271cb97a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 12 Sep 2004 05:48:19 +0000 Subject: [PATCH] Dispatch __eq__ and __hash__ to our real Irc. --- src/callbacks.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index d985a136d..8a9be5b0c 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -513,6 +513,12 @@ class IrcObjectProxy(RichReplyMethods): world.commandsProcessed += 1 self.evalArgs() + def __eq__(self, other): + return other == self.getRealIrc() + + def __hash__(self): + return hash(self.getRealIrc()) + def _resetReplyAttributes(self): self.to = None self.action = None