From c09f00aa7fbd42447adfc77afaabc5d3ae2bc67a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 31 Jul 2006 20:52:28 +0000 Subject: [PATCH] Show "%nick from room %room" in pm banner. Fixes #2197 --- src/chat_control.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 313377318..c5410d901 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -901,6 +901,11 @@ class ChatControl(ChatControlBase): if self.resource: name += '/' + self.resource avoid_showing_account_too = True + if self.TYPE_ID == message_control.TYPE_PM: + room_jid = self.contact.jid.split('/')[0] + room_ctrl = gajim.interface.msg_win_mgr.get_control(room_jid, + self.account) + name = _('%s from room %s') % (name, room_ctrl.name) name = gtkgui_helpers.escape_for_pango_markup(name) # We know our contacts nick, but if there are any other controls