diff options
author | Tollef Fog Heen <tfheen@err.no> | 2016-03-31 13:37:44 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2016-03-31 13:37:44 +0200 |
commit | fabd8894affd8b823924cf3366cf8088bb281b26 (patch) | |
tree | 12d46a6225dca582ba081f3c53c38725d268b0ce | |
parent | d58fe9dd98b5bbb2ecd3e5bb12fe7a916d7b457d (diff) | |
download | wee-slack-fabd8894affd8b823924cf3366cf8088bb281b26.tar.gz |
Check for channels_not_on_current_server_color existing before removing
Avoids an error message. Thanks to @torhve for spotting this.
-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 2b84133..4164f9d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2199,7 +2199,8 @@ if __name__ == "__main__": if not w.config_get_plugin('switch_buffer_on_join'): w.config_set_plugin('switch_buffer_on_join', "1") - w.config_option_unset('channels_not_on_current_server_color') + if w.config_get_plugin('channels_not_on_current_server_color'): + w.config_option_unset('channels_not_on_current_server_color') # Global var section slack_debug = None |