diff options
Diffstat (limited to 'server/src/commands/core/whisper.js')
-rw-r--r-- | server/src/commands/core/whisper.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands/core/whisper.js b/server/src/commands/core/whisper.js index 1cfa157..decf765 100644 --- a/server/src/commands/core/whisper.js +++ b/server/src/commands/core/whisper.js @@ -78,7 +78,7 @@ export async function run(core, server, socket, payload) { // module hook functions export function initHooks(server) { - server.registerHook('in', 'chat', this.whisperCheck, 20); + server.registerHook('in', 'chat', this.whisperCheck.bind(this), 20); } // hooks chat commands checking for /whisper |