Skip to content
Snippets Groups Projects
Commit 87363cc2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

no spaces in account name

parent 9e3a5a38
No related branches found
No related tags found
No related merge requests found
......@@ -381,6 +381,9 @@ class accountPreference_Window:
if (name == ''):
warning_Window('You must enter a name for this account')
return 0
if name.find(' ') != -1:
warning_Window('Spaces are not permited in account name')
return 0
if (jid == '') or (string.count(jid, '@') != 1):
warning_Window('You must enter a Jabber ID for this account\n\
For example : login@hostname')
......
#!/usr/bin/env python
## plugins/gtkgui.py
## plugins/dialogs.py
##
## Gajim Team:
## - Yann Le Boulanger <asterix@crans.org>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment