Commit b355098b authored by Link Mauve's avatar Link Mauve

muctab: Display the bookmark name when available, instead of the localpart.

parent eae26926
......@@ -374,9 +374,13 @@ class MucTab(ChatTab):
return False
def get_nick(self):
if not config.get('show_muc_jid'):
return safeJID(self.name).user
return self.name
if config.get('show_muc_jid'):
return self.name
bookmark = self.core.bookmarks[self.name]
if bookmark is not None and bookmark.name:
return bookmark.name
# TODO: send the disco#info identity name here, if it exists.
return safeJID(self.name).user
def get_text_window(self):
return self.text_win
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment