summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-04-27 19:40:39 +0200
committerFlorent Le Coz <louiz@louiz.org>2012-04-27 19:40:39 +0200
commit2a3434b1f81bed7e6c781a9504a87905f2d07948 (patch)
tree3e1ff146d678b1c164b512a90dc0629b8c6b6219
parent4ee3566a749e504c5168ca3b4eb2fdc57ab92b07 (diff)
downloadpoezio-2a3434b1f81bed7e6c781a9504a87905f2d07948.tar.gz
poezio-2a3434b1f81bed7e6c781a9504a87905f2d07948.tar.bz2
poezio-2a3434b1f81bed7e6c781a9504a87905f2d07948.tar.xz
poezio-2a3434b1f81bed7e6c781a9504a87905f2d07948.zip
Fix the get_nick issue correctly this time.
-rw-r--r--src/tabs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index f8923304..4b39ccc8 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2502,7 +2502,7 @@ class ConversationTab(ChatTab):
jid = JID(self.name)
contact = roster.get_contact_by_jid(jid.bare)
if contact:
- return contact.name
+ return contact.name or jid.user
else:
return jid.user