aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/core/chat.js')
-rw-r--r--server/src/commands/core/chat.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js
index 8d0098b..6c491b1 100644
--- a/server/src/commands/core/chat.js
+++ b/server/src/commands/core/chat.js
@@ -66,8 +66,8 @@ export async function run(core, server, socket, data) {
// module hook functions
export function initHooks(server) {
- server.registerHook('in', 'chat', this.commandCheckIn, 20);
- server.registerHook('in', 'chat', this.finalCmdCheck, 254);
+ server.registerHook('in', 'chat', this.commandCheckIn.bind(this), 20);
+ server.registerHook('in', 'chat', this.finalCmdCheck.bind(this), 254);
}
// checks for miscellaneous '/' based commands