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