From 6de2673c8f2a124a844906d5cf26bec7e8643e00 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Wed, 5 Jan 2011 01:14:30 +0000 Subject: fix ConversationTab's nicks when a contact has no name --- src/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index afc6376d..39d72b6c 100644 --- a/src/core.py +++ b/src/core.py @@ -496,9 +496,9 @@ class Core(object): # We create the conversation with the bare Jid if nothing was found conversation = self.open_conversation_window(jid.bare, False) if roster.get_contact_by_jid(jid.bare): - remote_nick = roster.get_contact_by_jid(jid.bare).get_name() + remote_nick = roster.get_contact_by_jid(jid.bare).get_name() or jid.user else: - remote_nick = jid.full + remote_nick = jid.user conversation.get_room().add_message(body, None, remote_nick, False, theme.COLOR_REMOTE_USER) if self.current_tab() is not conversation: conversation.set_color_state(theme.COLOR_TAB_PRIVATE) -- cgit v1.2.3