strip spaces arround server and room name in join groupchat dialog. Fixes #7081

This commit is contained in:
Yann Leboulanger 2012-01-21 09:17:09 +01:00
parent 34c95bbb9b
commit ba61066c2f
1 changed files with 3 additions and 2 deletions

View File

@ -2465,8 +2465,9 @@ class JoinGroupchatWindow:
'groupchat.')) 'groupchat.'))
return return
nickname = self._nickname_entry.get_text().decode('utf-8') nickname = self._nickname_entry.get_text().decode('utf-8')
server = self.server_comboboxentry.child.get_text().decode('utf-8') server = self.server_comboboxentry.child.get_text().decode('utf-8').\
room = self._room_jid_entry.get_text().decode('utf-8') strip()
room = self._room_jid_entry.get_text().decode('utf-8').strip()
room_jid = room + '@' + server room_jid = room + '@' + server
password = self._password_entry.get_text().decode('utf-8') password = self._password_entry.get_text().decode('utf-8')
try: try: