mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Dispatch __eq__ and __hash__ to our real Irc.
This commit is contained in:
parent
a9694c1012
commit
8bbed5a90e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user