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
|
// 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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user