diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user.py b/src/user.py index 82d74193..395d522b 100644 --- a/src/user.py +++ b/src/user.py @@ -26,6 +26,7 @@ import curses import theme ROLE_DICT = { + '':0, 'none':0, 'visitor':1, 'participant':2, @@ -47,6 +48,8 @@ class User(object): self.affiliation = affiliation self.show = show self.status = status + if role not in ROLE_DICT: # avoid unvalid roles + role = '' self.role = role def change_nick(self, nick): |