no spaces in account name
This commit is contained in:
parent
9e3a5a3838
commit
87363cc247
2 changed files with 4 additions and 1 deletions
|
@ -381,6 +381,9 @@ class accountPreference_Window:
|
||||||
if (name == ''):
|
if (name == ''):
|
||||||
warning_Window('You must enter a name for this account')
|
warning_Window('You must enter a name for this account')
|
||||||
return 0
|
return 0
|
||||||
|
if name.find(' ') != -1:
|
||||||
|
warning_Window('Spaces are not permited in account name')
|
||||||
|
return 0
|
||||||
if (jid == '') or (string.count(jid, '@') != 1):
|
if (jid == '') or (string.count(jid, '@') != 1):
|
||||||
warning_Window('You must enter a Jabber ID for this account\n\
|
warning_Window('You must enter a Jabber ID for this account\n\
|
||||||
For example : login@hostname')
|
For example : login@hostname')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
## plugins/gtkgui.py
|
## plugins/dialogs.py
|
||||||
##
|
##
|
||||||
## Gajim Team:
|
## Gajim Team:
|
||||||
## - Yann Le Boulanger <asterix@crans.org>
|
## - Yann Le Boulanger <asterix@crans.org>
|
||||||
|
|
Loading…
Add table
Reference in a new issue