Skip to content
Snippets Groups Projects
Commit 227f754c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

we can receive message from the room, so no nick

parent 470a6009
No related branches found
No related tags found
No related merge requests found
......@@ -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 '''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment