From af59db11e0fec94c73aeded477be98fde519028d Mon Sep 17 00:00:00 2001 From: marzavec Date: Wed, 11 Nov 2020 09:31:57 -0800 Subject: [PATCH] Update whisper.js --- server/src/commands/core/whisper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/commands/core/whisper.js b/server/src/commands/core/whisper.js index 25bc1b6..9ab1433 100644 --- a/server/src/commands/core/whisper.js +++ b/server/src/commands/core/whisper.js @@ -107,7 +107,7 @@ export function whisperCheck({ return false; } - if (payload.text.startsWith('/whisper') || payload.text.startsWith('/w ')) { + if (payload.text.startsWith('/whisper ') || payload.text.startsWith('/w ')) { const input = payload.text.split(' '); // If there is no nickname target parameter @@ -140,7 +140,7 @@ export function whisperCheck({ return false; } - if (payload.text.startsWith('/r ')) { + if (payload.text.startsWith('/reply ') || payload.text.startsWith('/r ')) { if (typeof socket.whisperReply === 'undefined') { server.reply({ cmd: 'warn', // @todo Add numeric error code as `id`