mirror of https://github.com/Mikaela/Limnoria.git
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:
|
||||
callback.die()
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue