From 16022599e591e8dd6c07752ed93a5fa704e53d73 Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Thu, 12 Jan 2017 12:42:46 -0500 Subject: [PATCH] Use __class__ cell for channel comparisons --- src/channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels.py b/src/channels.py index ffe9782..c51f7da 100644 --- a/src/channels.py +++ b/src/channels.py @@ -96,7 +96,7 @@ class Channel(IRCContext): return hash(self.name) def __eq__(self, other): - return self._compare(other, Channel, "name", "key", "client", "state", "modes", "timestamp") + return self._compare(other, __class__, "name", "key", "client", "state", "modes", "timestamp") @property def key(self):