Skip to content

Commit a5bef7a

Browse files
pbaranayJeff Ammons
authored andcommitted
Fix channel comparison with # prefix
1 parent 2590662 commit a5bef7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

slackclient/_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def __init__(self, server, name, channel_id, members=None):
66
self.members = [] if members is None else members
77

88
def __eq__(self, compare_str):
9-
if self.name == compare_str or self.name == "#" + compare_str or self.id == compare_str:
9+
if self.name == compare_str or "#" + self.name == compare_str or self.id == compare_str:
1010
return True
1111
else:
1212
return False

0 commit comments

Comments
 (0)