strip JID in add contact dialog. Fixes #5200

This commit is contained in:
Yann Leboulanger 2009-08-06 00:01:07 +02:00
parent b83f9ae5d6
commit a79efe5af0
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
def on_add_button_clicked(self, widget): def on_add_button_clicked(self, widget):
'''When Subscribe button is clicked''' '''When Subscribe button is clicked'''
jid = self.uid_entry.get_text().decode('utf-8') jid = self.uid_entry.get_text().decode('utf-8').strip()
if not jid: if not jid:
return return