diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-20 00:32:47 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-20 00:32:47 +0200 |
commit | 47af4ac2687967ceda1d4112536819275c4d5b1c (patch) | |
tree | 163ec13bda39c633ef7137927c4d54d03321712d | |
parent | ec07d6265c46f3587bb0c0fb1540374a8f587832 (diff) | |
download | wee-slack-47af4ac2687967ceda1d4112536819275c4d5b1c.tar.gz |
Fix debug buffer not being created on script load
This bug was introduced in commit b2618af.
-rw-r--r-- | wee_slack.py | 6 |
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): |