string spaces when creating the jid. if ICQ# is '1111 ' we were producing invalid jid

This commit is contained in:
Nikos Kouremenos 2005-06-04 13:33:38 +00:00
parent 913128901d
commit a483c7247c
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ class Add_new_contact_window:
def fill_jid(self):
model = self.protocol_combobox.get_model()
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
jid = jid.replace('@', '%')
agent = model[index][1]