mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Added __ne__ method to IrcMsg
This commit is contained in:
parent
9a39417fcf
commit
061f2e0a78
@ -122,6 +122,9 @@ class IrcMsg(object):
|
|||||||
self.prefix == other.prefix and \
|
self.prefix == other.prefix and \
|
||||||
self.args == other.args
|
self.args == other.args
|
||||||
|
|
||||||
|
def __ne__(self, other):
|
||||||
|
return not (self == other)
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.command) & hash(self.prefix) & hash(self.args)
|
return hash(self.command) & hash(self.prefix) & hash(self.args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user