aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/whisper.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/src/commands/core/whisper.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/commands/core/whisper.js b/server/src/commands/core/whisper.js
index 7173ae9..672db93 100644
--- a/server/src/commands/core/whisper.js
+++ b/server/src/commands/core/whisper.js
@@ -85,13 +85,14 @@ exports.whisperCheck = (core, server, socket, payload) => {
if (payload.text.startsWith('/whisper')) {
let input = payload.text.split(' ');
+
// If there is no nickname target parameter
if (input[1] === undefined) {
server.reply({
cmd: 'warn',
text: 'Refer to `/help whisper` for instructions on how to use this command.'
}, socket);
-
+
return false;
}