diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-11-13 04:56:01 +0000 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-11-13 04:56:01 +0000 |
commit | 7315b08e11f64a8b8425fb673a6bc76f69887664 (patch) | |
tree | ed85474fe276cbaa6937b436ce31d53239a92fe5 /wee_slack.py | |
parent | f7a12869a1ab126ce6f3456eb7055a95f88bb7f0 (diff) | |
parent | 7dc2896e968512bd436ab3fcadf8d5425a2bba7c (diff) | |
download | wee-slack-7315b08e11f64a8b8425fb673a6bc76f69887664.tar.gz |
Merge branch 'master' into 114_better_buffer_mod
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index fb42f58..38ae049 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -290,7 +290,8 @@ class SlackServer(object): for item in data['self']['prefs']['muted_channels'].split(','): if item == '': continue - self.channels.find(item).muted = True + if self.channels.find(item) is not None: + self.channels.find(item).muted = True for item in self.channels: item.get_history() |