Author: asterix Date: 2007-09-07 23:21:05 +0200 (Fri, 07 Sep 2007) New Revision: 8750
Modified: branches/gajim_0.11.1/src/config.py Log: better error message when username contacins a '@' in account creation window
Modified: branches/gajim_0.11.1/src/config.py =================================================================== --- branches/gajim_0.11.1/src/config.py 2007-09-07 21:03:55 UTC (rev 8749) +++ branches/gajim_0.11.1/src/config.py 2007-09-07 21:21:05 UTC (rev 8750) @@ -2892,6 +2892,11 @@ '.') dialogs.ErrorDialog(pritext, sectext) return + if '@' in username: + pritext = _('Invalid username') + sectext = _('Invalid username') + dialogs.ErrorDialog(pritext, sectext) + return server = widgets['server_comboboxentry'].child.get_text().decode('utf-8') savepass = widgets['save_password_checkbutton'].get_active() password = widgets['pass1_entry'].get_text().decode('utf-8')