diff --git a/server/src/commands/core/join.js b/server/src/commands/core/join.js index d832104..60250d0 100644 --- a/server/src/commands/core/join.js +++ b/server/src/commands/core/join.js @@ -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',