fix(plugin): fix reloadp command not taking effect

- Use write_plugin_config() instead of directly modifying plugin_config dict
- Add remove_plugin_config() to clear plugin config before reload
- Update plugins to use pconf() and write_plugin_config() for better config management
This commit is contained in:
Rikka
2024-12-02 16:38:21 +08:00
parent a4d0e9bbc3
commit c567641c5c
6 changed files with 19 additions and 10 deletions

View File

@@ -477,7 +477,7 @@ class Godcmd(Plugin):
return model
def reload(self):
gconf = plugin_config[self.name]
gconf = pconf(self.name)
if gconf:
if gconf.get("password"):
self.password = gconf["password"]