1
0
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:
marzavec 2020-10-16 23:36:28 -05:00
parent d227bcc4f6
commit 76b30c8553

View File

@ -65,8 +65,7 @@ export async function run({
// end todo // end todo
// validates the user input for `nick` // validates the user input for `nick`
const validName = verifyNickname(nick, socket); if (verifyNickname(nick, socket) !== true) {
if (validName !== true) {
return server.reply({ return server.reply({
cmd: 'warn', cmd: 'warn',
text: 'Nickname must consist of up to 24 letters, numbers, and underscores', text: 'Nickname must consist of up to 24 letters, numbers, and underscores',