Added __ne__ method to IrcMsg

This commit is contained in:
Jeremy Fincher 2003-04-04 09:12:00 +00:00
parent 9a39417fcf
commit 061f2e0a78
1 changed files with 3 additions and 0 deletions

View File

@ -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)