Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2004-05-15 20:52:07 +0400
committerYann Leboulanger <asterix@lagaule.org>2004-05-15 20:52:07 +0400
commit87363cc2474d5be60893aba1fa632a69c63829cd (patch)
treedce13e5d5b89092202e838d260745c38137ce2d3 /plugins
parent9e3a5a38386747f3245385f4bcb639542750740a (diff)
no spaces in account name
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkgui/config.py3
-rw-r--r--plugins/gtkgui/dialogs.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py
index f41f1036d..1bdba1b91 100644
--- a/plugins/gtkgui/config.py
+++ b/plugins/gtkgui/config.py
@@ -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')
diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py
index 1b0dfe8a9..28596a2e2 100644
--- a/plugins/gtkgui/dialogs.py
+++ b/plugins/gtkgui/dialogs.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-## plugins/gtkgui.py
+## plugins/dialogs.py
##
## Gajim Team:
## - Yann Le Boulanger <asterix@crans.org>