Use __class__ cell for channel comparisons
This commit is contained in:
parent
420d67250f
commit
16022599e5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user