diff options
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 072b06c..cbe98ec 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -853,6 +853,9 @@ class User(object): return [self.name, "@" + self.name, self.identifier] def set_active(self): + if self.deleted: + return + self.presence = "active" for channel in self.server.channels: if channel.has_user(self.identifier): @@ -863,6 +866,9 @@ class User(object): buffer_list_update_next() def set_inactive(self): + if self.deleted: + return + self.presence = "away" for channel in self.server.channels: if channel.has_user(self.identifier): |