From 7a1c470e0e4a35b2885a8dceae7dcc76bc71c4d4 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Thu, 16 Oct 2014 10:46:53 -0700 Subject: oopsie - typo --- wee_slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wee_slack.py') 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}) -- cgit