aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/core/chat.js')
-rw-r--r--server/src/commands/core/chat.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js
index c086077..ee45425 100644
--- a/server/src/commands/core/chat.js
+++ b/server/src/commands/core/chat.js
@@ -1,10 +1,10 @@
/*
-
+ Description: Rebroadcasts any `text` to all clients in a `channel`
*/
'use strict';
-function parseText(text) {
+const parseText = (text) => {
if (typeof text !== 'string') {
return false;
}
@@ -15,7 +15,7 @@ function parseText(text) {
text = text.replace(/\n{3,}/g, "\n\n");
return text;
-}
+};
exports.run = async (core, server, socket, data) => {
let text = parseText(data.text);