summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-12-12 20:31:05 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-26 10:05:34 +0100
commitfe00f0eb23f492f5c15d3ac843c8ce7158daf174 (patch)
tree86ebc50d3e7043400715d83c1a449571a9be5daa
parentedf2392fcfdf89ae9696bccf8491abadfcef65cc (diff)
downloadpoezio-fe00f0eb23f492f5c15d3ac843c8ce7158daf174.tar.gz
poezio-fe00f0eb23f492f5c15d3ac843c8ce7158daf174.tar.bz2
poezio-fe00f0eb23f492f5c15d3ac843c8ce7158daf174.tar.xz
poezio-fe00f0eb23f492f5c15d3ac843c8ce7158daf174.zip
ALWAYS display affiliation or role changes, in MucTabs. fixes #2309
-rw-r--r--src/tabs.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 661b4112..e696f46d 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1239,14 +1239,17 @@ class MucTab(ChatTab):
hide_status_change = config.get_by_tabname('hide_status_change', -1, self.general_jid, True)
if hide_status_change < -1:
hide_status_change = -1
- if (hide_status_change == -1 or \
+ if ((hide_status_change == -1 or \
user.has_talked_since(hide_status_change) or\
user.nick == self.own_nick)\
and\
(affiliation != user.affiliation or\
role != user.role or\
show != user.show or\
- status != user.status):
+ status != user.status))\
+ or\
+ (affiliation != user.affiliation or\
+ role != user.role):
# display the message in the room
self._text_buffer.add_message(msg)
self.core.on_user_changed_status_in_private('%s/%s' % (from_room, from_nick), msg)