mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Update whisper.js
This commit is contained in:
parent
28ba8282fc
commit
af59db11e0
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue
Block a user