Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/Session.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-26 20:52:45 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-26 20:52:45 (GMT)
commit7443ee4c8ba36e1867fc7f89096c34d08c1c69da (patch)
tree9f8e0097abbb2ce0248aef6974b2dbd1fcc526cb /shell/Session.py
parent72d43fde28c19adf61f37c38d4168c02efed0582 (diff)
Don't allow empty nick names and if it happens consider
the profile invalid.
Diffstat (limited to 'shell/Session.py')
-rw-r--r--shell/Session.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/Session.py b/shell/Session.py
index da17cd7..6cb0f70 100644
--- a/shell/Session.py
+++ b/shell/Session.py
@@ -26,7 +26,8 @@ class Session:
def _check_profile(self):
profile = conf.get_profile()
- if profile.get_nick_name() == None:
+ name = profile.get_nick_name()
+ if not name or not len(name):
dialog = FirstTimeDialog()
dialog.run()
profile.save()