diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-11-04 17:59:16 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-11-04 17:59:16 -0800 |
commit | 3d9a92b1beb42626aa3433b3f8680f075c53a676 (patch) | |
tree | 31c7126eca2d4e5a53b69d743974eb5c12d0f88d /wee_slack.py | |
parent | 38cb307f45fe046529ad29c84cae19ca3dc0f21b (diff) | |
download | wee-slack-3d9a92b1beb42626aa3433b3f8680f075c53a676.tar.gz |
fix always mark channel read
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 3968b37..a9e62c1 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1066,9 +1066,10 @@ def url_processor_cb(data, command, return_code, out, err): return w.WEECHAT_RC_OK def mark_silly_channels_read(channel): - if channel in channels_always_marked_read: - if channels.find("channel"): - channels.find("channel").mark_read() + name = channels.find(channel).name + if name in channels_always_marked_read: + if channels.find(channel): + channels.find(channel).mark_read() ### END Slack specific requests |