diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-06-08 13:34:46 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-09-02 22:43:44 +0200 |
commit | f51744fc56de0227137fd00d75b7df27291b3664 (patch) | |
tree | aa6ae03a90436b60706660d6eab17bd47a6222fa | |
parent | a0651c6a5a5b71e7370b24a3ea58a4b2e0072263 (diff) | |
download | wee-slack-f51744fc56de0227137fd00d75b7df27291b3664.tar.gz |
Set muted channels to empty set if no muted channels
Previously, it was set to the set of an empty string.
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 757671f..2a0a7b5 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1099,7 +1099,7 @@ class SlackTeam(object): w.buffer_merge(self.channel_buffer, w.buffer_search_main()) def set_muted_channels(self, muted_str): - self.muted_channels = {x for x in muted_str.split(',')} + self.muted_channels = {x for x in muted_str.split(',') if x} def set_highlight_words(self, highlight_str): self.highlight_words = {x for x in highlight_str.split(',')} |