diff options
-rw-r--r-- | wee_slack.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index df5b35e..26896ca 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -721,9 +721,12 @@ class User(object): return self.name def __eq__(self, compare_str): - if compare_str == self.name or compare_str == "@" + self.name or compare_str == self.identifier: - return True - else: + try: + if compare_str == self.name or compare_str == "@" + self.name or compare_str == self.identifier: + return True + else: + return False + except: return False def get_aliases(self): |