mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 18:59:53 +00:00
Check length of nickname
This commit is contained in:
1 parent
d26d2ec8df
commit
9d86bc0f74
1 file changed
+4
@@ -1613,6 +1613,10 @@ def _isReservedName(nickname: str) -> bool:
|
||||
def validNickname(domain: str, nickname: str) -> bool:
|
||||
"""Is the given nickname valid?
|
||||
"""
|
||||
if len(nickname) == 0:
|
||||
return False
|
||||
if len(nickname) > 30:
|
||||
return False
|
||||
if not isValidLanguage(nickname):
|
||||
return False
|
||||
forbiddenChars = ('.', ' ', '/', '?', ':', ';', '@', '#')
|
||||
|
||||
Reference in new issue
Block a user