Fix debug buffer not being created on script load
This bug was introduced in commit
@@ -5071,8 +5071,8 @@ 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:
+
+ 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
