summaryrefslogtreecommitdiff
path: root/src/tabs/muctab.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-07-06 00:18:29 +0200
committermathieui <mathieui@mathieui.net>2014-07-06 00:18:29 +0200
commite0e2123a4be207a65e48e016007e71579fae2ba5 (patch)
tree8191c571d84622bc8eeb86d5ec366b31be5c97cd /src/tabs/muctab.py
parentcfd344edc3493b2db804a4eb5efda49e754fb1ed (diff)
downloadpoezio-e0e2123a4be207a65e48e016007e71579fae2ba5.tar.gz
poezio-e0e2123a4be207a65e48e016007e71579fae2ba5.tar.bz2
poezio-e0e2123a4be207a65e48e016007e71579fae2ba5.tar.xz
poezio-e0e2123a4be207a65e48e016007e71579fae2ba5.zip
Fix #2534 (display who changed the topic)
Diffstat (limited to 'src/tabs/muctab.py')
-rw-r--r--src/tabs/muctab.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index 70f6fb70..4dc7a2cf 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -65,6 +65,7 @@ class MucTab(ChatTab):
self.users = []
self.privates = [] # private conversations
self.topic = ''
+ self.topic_from = ''
self.remote_wants_chatstates = True
# We send active, composing and paused states to the MUC because
# the chatstate may or may not be filtered by the MUC,
@@ -533,9 +534,11 @@ class MucTab(ChatTab):
"""
if not arg.strip():
self._text_buffer.add_message(
- _("\x19%s}The subject of the room is: %s") %
+ _("\x19%s}The subject of the room is: %s %s") %
(dump_tuple(get_theme().COLOR_INFORMATION_TEXT),
- self.topic))
+ self.topic,
+ '(set by %s)' % self.topic_from if self.topic_from
+ else ''))
self.refresh()
return
subject = arg