Show "%nick from room %room" in pm banner. Fixes #2197

This commit is contained in:
Yann Leboulanger 2006-07-31 20:52:28 +00:00
parent 4adf2c4f6d
commit c09f00aa7f
1 changed files with 5 additions and 0 deletions

View File

@ -901,6 +901,11 @@ class ChatControl(ChatControlBase):
if self.resource: if self.resource:
name += '/' + self.resource name += '/' + self.resource
avoid_showing_account_too = True 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) name = gtkgui_helpers.escape_for_pango_markup(name)
# We know our contacts nick, but if there are any other controls # We know our contacts nick, but if there are any other controls