diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-08-01 04:07:38 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-08-01 04:07:38 +0200 |
commit | 52f50cd949cbfb55d05f1eea1d0619bba573ec7c (patch) | |
tree | d8a0d20b5fd93c1a8784abda86b051a876afef96 /src | |
parent | df569d4e6699cb116b95767a1e38c69364e8cead (diff) | |
download | poezio-52f50cd949cbfb55d05f1eea1d0619bba573ec7c.tar.gz poezio-52f50cd949cbfb55d05f1eea1d0619bba573ec7c.tar.bz2 poezio-52f50cd949cbfb55d05f1eea1d0619bba573ec7c.tar.xz poezio-52f50cd949cbfb55d05f1eea1d0619bba573ec7c.zip |
The password used can be changed at runtime using /set and /reconnect
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core.py b/src/core/core.py index 7e7e9fd1..763e4046 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -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) |