aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 33408fa..a21e4bb 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -5071,9 +5071,9 @@ class PluginConfig(object):
else:
key = full_key.replace(CONFIG_PREFIX + ".", "")
self.settings[key] = self.fetch_setting(key)
- if full_key == CONFIG_PREFIX + ".debug_mode":
- if self.debug_mode:
- create_slack_debug_buffer()
+
+ if (full_key is None or full_key == CONFIG_PREFIX + ".debug_mode") and self.debug_mode:
+ create_slack_debug_buffer()
return w.WEECHAT_RC_OK
def fetch_setting(self, key):