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

prevent TB when / in gc nicknames

parent a3a91ead
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,7 @@ class Contacts:
contacts = self.get_contacts_from_jid(account, jid)
if not contacts and '/' in jid:
# jid may be a fake jid, try it
room, nick = jid.split('/')
room, nick = jid.split('/', 1)
contact = self.get_gc_contact(account, room, nick)
return contact
return self.get_highest_prio_contact_from_contacts(contacts)
......
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