summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCĂ©lestin Matte <celestin.matte@gmail.com>2014-12-29 22:26:50 +0100
committermathieui <mathieui@mathieui.net>2014-12-30 19:57:32 +0100
commit2a376cf419b1c05b76ebde9b653faba83c5975e1 (patch)
tree8a5f66239c60f899cec0721b93d288539d876f7a
parent25d2bcbbffd7038163916b48666830c095d20507 (diff)
downloadpoezio-2a376cf419b1c05b76ebde9b653faba83c5975e1.tar.gz
poezio-2a376cf419b1c05b76ebde9b653faba83c5975e1.tar.bz2
poezio-2a376cf419b1c05b76ebde9b653faba83c5975e1.tar.xz
poezio-2a376cf419b1c05b76ebde9b653faba83c5975e1.zip
Update color in all tabs with /color
-rw-r--r--src/tabs/muctab.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index d567e364..4c4ba819 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -489,11 +489,12 @@ class MucTab(ChatTab):
if nick_color_aliases:
# if any user in the room has a nick which is an alias of the
# nick, update its color
- for u in self.users:
- nick_alias = re.sub('^_*', '', u.nick)
- nick_alias = re.sub('_*$', '', nick_alias)
- if nick_alias == nick:
- u.change_color(color)
+ for tab in self.core.get_tabs(MucTab):
+ for u in tab.users:
+ nick_alias = re.sub('^_*', '', u.nick)
+ nick_alias = re.sub('_*$', '', nick_alias)
+ if nick_alias == nick:
+ u.change_color(color)
self.text_win.rebuild_everything(self._text_buffer)
self.user_win.refresh(self.users)
self.text_win.refresh()