diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-10-16 10:46:53 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-10-16 10:46:53 -0700 |
commit | 7a1c470e0e4a35b2885a8dceae7dcc76bc71c4d4 (patch) | |
tree | 7b2357ff004fd6508d1f78cc862e9182a7f519d9 /wee_slack.py | |
parent | 35d8f097338658e360f5cb2fef1f4f56c937ea2d (diff) | |
download | wee-slack-7a1c470e0e4a35b2885a8dceae7dcc76bc71c4d4.tar.gz |
oopsie - typo
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 6a0546a..b368ceb 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -323,7 +323,7 @@ def buffer_switch_cb(signal, sig_type, data): if reverse_channel_hash.has_key(channel_name): slack_mark_channel_read(reverse_channel_hash[channel_name]) #end TESTING - previous_buffer = channel_name + previous_buffer = channel_name else: previous_buffer = None return w.WEECHAT_RC_OK @@ -379,7 +379,7 @@ def slack_never_away_cb(data, remaining): def slack_mark_channel_read(channel_id): t = time.time() + 1 - weechat_buffer = w.info_get("irc_buffer", "%s,%s" % (server, channel_hash["C0255AL33"])) + weechat_buffer = w.info_get("irc_buffer", "%s,%s" % (server, channel_hash[channel_id])) w.buffer_set(weechat_buffer, "unread", "") if channel_id.startswith('C'): reply = async_slack_api_request("channels.mark", {"channel":channel_id,"ts":t}) |