We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87261f4 + 7831cd9 commit a232459Copy full SHA for a232459
1 file changed
slackclient/_user.py
@@ -7,7 +7,7 @@ def __init__(self, server, name, user_id, real_name, tz):
7
self.id = user_id
8
9
def __eq__(self, compare_str):
10
- if self.id == compare_str or self.name == compare_str:
+ if compare_str in (self.id, self.name):
11
return True
12
else:
13
return False
0 commit comments