From 061f2e0a788ec20682e515eccb0d399f9bd81343 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 4 Apr 2003 09:12:00 +0000 Subject: [PATCH] Added __ne__ method to IrcMsg --- src/ircmsgs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 84b3b712c..91ae8f2e0 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -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)