mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-04 09:21:07 -05:00
Added __eq__ and __hash__ to the Irc class (necessary for the Relay module)
This commit is contained in:
parent
a848a8982d
commit
1623c594d7
@ -387,4 +387,11 @@ class Irc(object):
|
|||||||
for callback in self.callbacks:
|
for callback in self.callbacks:
|
||||||
callback.die()
|
callback.die()
|
||||||
world.ircs.remove(self)
|
world.ircs.remove(self)
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return id(self)
|
||||||
|
|
||||||
|
def __eq__(self, other):
|
||||||
|
return id(self) == id(other)
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user