we can receive message from the room, so no nick

This commit is contained in:
Yann Leboulanger 2005-08-14 21:02:51 +00:00
parent 470a60096c
commit 227f754ce5
1 changed files with 5 additions and 2 deletions

View File

@ -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 '''