aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/invite.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/src/commands/core/invite.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/commands/core/invite.js b/server/src/commands/core/invite.js
index 7d162d6..5889562 100644
--- a/server/src/commands/core/invite.js
+++ b/server/src/commands/core/invite.js
@@ -1,12 +1,12 @@
/*
-
+ Description: Generates a semi-unique channel name then broadcasts it to each client
*/
'use strict';
-function verifyNickname(nick) {
+const verifyNickname = (nick) => {
return /^[a-zA-Z0-9_]{1,24}$/.test(nick);
-}
+};
exports.run = async (core, server, socket, data) => {
if (typeof data.nick !== 'string') {
@@ -19,7 +19,7 @@ exports.run = async (core, server, socket, data) => {
}
if (data.nick == socket.nick) {
- // TODO: reply with something witty? They invited themself
+ // They invited themself
return;
}