summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/core.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.py b/src/core/core.py
index 56b0ad2b..807ca0cc 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -315,6 +315,8 @@ class Core(object):
self.on_password_change)
self.add_configuration_handler("enable_vertical_tab_list",
self.on_vertical_tab_list_config_change)
+ self.add_configuration_handler("deterministic_nick_colors",
+ self.on_nick_determinism_changed)
self.add_configuration_handler("", self.on_any_config_change)
@@ -405,6 +407,15 @@ class Core(object):
"""
self.xmpp.password = value
+
+ def on_nick_determinism_changed(self, option, value):
+ """If we change the value to true, we call /recolor on all the MucTabs, to
+ make the current nick colors reflect their deterministic value.
+ """
+ if value.lower() == "true":
+ for tab in self.get_tabs(tabs.MucTab):
+ tab.command_recolor('')
+
def reload_config(self):
# reload all log files
log.debug("Reloading the log files…")