diff options
author | marzavec <admin@marzavec.com> | 2020-03-12 19:28:20 +0100 |
---|---|---|
committer | marzavec <admin@marzavec.com> | 2020-03-12 19:28:20 +0100 |
commit | 2b6e771383f4c6f392b32ce26e4d759b56791132 (patch) | |
tree | b8c1cefecbd7f5816a3fb5ddc4bdb6bdfe463ba2 /server/src/commands/core/whisper.js | |
parent | Merge pull request #96 from MinusGix/fixKickHash (diff) | |
download | hackchat-2b6e771383f4c6f392b32ce26e4d759b56791132.tar.gz hackchat-2b6e771383f4c6f392b32ce26e4d759b56791132.zip |
Protocol Updates and Bug Fixes
Diffstat (limited to 'server/src/commands/core/whisper.js')
-rw-r--r-- | server/src/commands/core/whisper.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/commands/core/whisper.js b/server/src/commands/core/whisper.js index 0c2e2d3..4424cd2 100644 --- a/server/src/commands/core/whisper.js +++ b/server/src/commands/core/whisper.js @@ -88,7 +88,7 @@ export function whisperCheck(core, server, socket, payload) { return false; } - if (payload.text.startsWith('/whisper')) { + if (payload.text.startsWith('/whisper') || payload.text.startsWith('/w ')) { const input = payload.text.split(' '); // If there is no nickname target parameter @@ -147,5 +147,6 @@ export const info = { usage: ` API: { cmd: 'whisper', nick: '<target name>', text: '<text to whisper>' } Text: /whisper <target name> <text to whisper> + Text: /w <target name> <text to whisper> Alt Text: /r <text to whisper, this will auto reply to the last person who whispered to you>`, }; |