aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/chat_mode.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/onionshare_cli/web/chat_mode.py')
-rw-r--r--cli/onionshare_cli/web/chat_mode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/onionshare_cli/web/chat_mode.py b/cli/onionshare_cli/web/chat_mode.py
index 3eda2867..f6aead45 100644
--- a/cli/onionshare_cli/web/chat_mode.py
+++ b/cli/onionshare_cli/web/chat_mode.py
@@ -51,6 +51,7 @@ class ChatModeWeb:
username = username.strip()
return (
username
+ and username.isascii()
and username not in self.connected_users
and len(username) < 128
)