diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-07-21 12:54:49 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-07-21 12:54:49 -0700 |
commit | 5dd70ff74bc85db454bc45a0dd7ddc49a78c6135 (patch) | |
tree | 4ceb51fdb7e6b740e4a05d6b007451b963a07f96 /wee_slack.py | |
parent | e81a2053b9d668216e4a938bd89a2b59f0a0b922 (diff) | |
download | wee-slack-5dd70ff74bc85db454bc45a0dd7ddc49a78c6135.tar.gz |
performance improvement
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index c960590..e34ca9d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1075,9 +1075,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): |