mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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.args == other.args
|
||||
|
||||
def __ne__(self, other):
|
||||
return not (self == other)
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.command) & hash(self.prefix) & hash(self.args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user