aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2014-11-04 17:59:16 -0800
committerRyan Huber <rhuber@gmail.com>2014-11-04 17:59:16 -0800
commit3d9a92b1beb42626aa3433b3f8680f075c53a676 (patch)
tree31c7126eca2d4e5a53b69d743974eb5c12d0f88d /wee_slack.py
parent38cb307f45fe046529ad29c84cae19ca3dc0f21b (diff)
downloadwee-slack-3d9a92b1beb42626aa3433b3f8680f075c53a676.tar.gz
fix always mark channel read
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py7
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