Use __class__ cell for channel comparisons

This commit is contained in:
Vgr E. Barry 2017-01-12 12:42:46 -05:00
parent 420d67250f
commit 16022599e5

View File

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