aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-07-21 12:55:01 -0700
committerRyan Huber <rhuber@gmail.com>2015-07-21 12:55:01 -0700
commitf14e4b30bd672fe9c8446d44e089e9b46ffcc1f5 (patch)
tree320b109267f8069ef2ffaa96bc91d2b3580d3914 /wee_slack.py
parent5d256ba213529279d7075a56430dec44a4199646 (diff)
parent5dd70ff74bc85db454bc45a0dd7ddc49a78c6135 (diff)
downloadwee-slack-f14e4b30bd672fe9c8446d44e089e9b46ffcc1f5.tar.gz
Merge branch 'master' into reactions
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8581e75..ade99cb 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1166,9 +1166,9 @@ def process_presence_change(message_json):
server = servers.find(message_json["myserver"])
identifier = message_json.get("user", server.nick)
if message_json["presence"] == 'active':
- users.find(identifier).set_active()
+ server.users.find(identifier).set_active()
else:
- users.find(identifier).set_inactive()
+ server.users.find(identifier).set_inactive()
def process_channel_marked(message_json):