From 227f754ce527031cd221e58400869d1e90c2a158 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 14 Aug 2005 21:02:51 +0000 Subject: [PATCH] we can receive message from the room, so no nick --- src/common/gajim.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index 9a56eaba4..7ae28d650 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -84,8 +84,11 @@ def get_nick_from_fjid(jid): def get_room_and_nick_from_fjid(jid): # fake jid is the jid for a contact in a room # gaim@conference.jabber.org/nick/nick-continued - # return ('gaim@conference.jabber.org', 'nick/nick-continued') - return jid.split('/', 1) + # return ('gaim@conference.jabber.org', 'nick/nick-continued') + l = jid.split('/', 1) + if len(l) = 1: #No nick + l.append('') + return l def get_contact_instances_from_jid(account, jid): ''' we may have two or more resources on that jid '''