string spaces when creating the jid. if ICQ# is '1111 ' we were producing invalid jid
This commit is contained in:
parent
913128901d
commit
a483c7247c
|
@ -329,7 +329,7 @@ class Add_new_contact_window:
|
||||||
def fill_jid(self):
|
def fill_jid(self):
|
||||||
model = self.protocol_combobox.get_model()
|
model = self.protocol_combobox.get_model()
|
||||||
index = self.protocol_combobox.get_active()
|
index = self.protocol_combobox.get_active()
|
||||||
jid = self.uid_entry.get_text()
|
jid = self.uid_entry.get_text().strip()
|
||||||
if index > 0: # it's not jabber but a transport
|
if index > 0: # it's not jabber but a transport
|
||||||
jid = jid.replace('@', '%')
|
jid = jid.replace('@', '%')
|
||||||
agent = model[index][1]
|
agent = model[index][1]
|
||||||
|
|
Loading…
Reference in New Issue