From a483c7247ce2e9d808d49f6ccdefbe9a2b3156fd Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Sat, 4 Jun 2005 13:33:38 +0000
Subject: [PATCH] string spaces when creating the jid. if ICQ# is '1111 ' we
 were producing invalid jid

---
 src/dialogs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dialogs.py b/src/dialogs.py
index baf2a2a95f..2d0c4becb6 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -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]
-- 
GitLab