Commit 52f50cd9 authored by louiz’'s avatar louiz’

The password used can be changed at runtime using /set and /reconnect

parent df569d4e
......@@ -305,6 +305,8 @@ class Core(object):
theming.update_themes_dir)
self.add_configuration_handler("theme",
self.on_theme_config_change)
self.add_configuration_handler("password",
self.on_password_change)
self.add_configuration_handler("", self.on_any_config_change)
......@@ -382,6 +384,12 @@ class Core(object):
self.information(error_msg, 'Warning')
self.refresh_window()
def on_password_change(self, option, value):
"""
Set the new password in the slixmpp.ClientXMPP object
"""
self.xmpp.password = value
def sigusr_handler(self, num, stack):
"""
Handle SIGUSR1 (10)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment