summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-07-08 18:40:48 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 23:21:09 +0200
commitf35b3d16a3104c9869b1f878fd4d93967a1963a2 (patch)
tree82db71fc79075019373398102cce37014c34bf42
parent07e13a1220ee8021ea3a09c1a72f1d09cb6e82b1 (diff)
downloadpoezio-f35b3d16a3104c9869b1f878fd4d93967a1963a2.tar.gz
poezio-f35b3d16a3104c9869b1f878fd4d93967a1963a2.tar.bz2
poezio-f35b3d16a3104c9869b1f878fd4d93967a1963a2.tar.xz
poezio-f35b3d16a3104c9869b1f878fd4d93967a1963a2.zip
Also reload plugins configuration on /reload
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 1aa244c0..3381b539 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -477,6 +477,9 @@ class Core(object):
if new_value != old_value:
self.trigger_configuration_change(option, new_value)
log.debug("Config reloaded.")
+ for name, plugin in self.plugin_manager.plugins.items():
+ plugin.config.read_file()
+ log.debug("Config reloaded for plugin %s", name)
# in case some roster options have changed
roster.modified()