mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Update join.js
This commit is contained in:
parent
d227bcc4f6
commit
76b30c8553
|
@ -65,8 +65,7 @@ export async function run({
|
|||
// end todo
|
||||
|
||||
// validates the user input for `nick`
|
||||
const validName = verifyNickname(nick, socket);
|
||||
if (validName !== true) {
|
||||
if (verifyNickname(nick, socket) !== true) {
|
||||
return server.reply({
|
||||
cmd: 'warn',
|
||||
text: 'Nickname must consist of up to 24 letters, numbers, and underscores',
|
||||
|
|
Loading…
Reference in New Issue
Block a user