diff --git a/src/common/gajim.py b/src/common/gajim.py index 5947c379c..91b55c300 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -149,7 +149,11 @@ def construct_fjid(room_jid, nick): return room_jid + '/' + nick def get_resource_from_jid(jid): - return jid.split('/', 1)[1] # abc@doremi.org/res/res-continued + jids = jid.split('/', 1) + if len(jids) > 1: + return jids[1] # abc@doremi.org/res/res-continued + else: + return '' '''\ [15:34:28] we should add contact.fake_jid I think [15:34:46] so if we know real jid, it wil be in contact.jid, or we look in contact.fake_jid