aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/mod/dumb.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/mod/dumb.js')
-rw-r--r--server/src/commands/mod/dumb.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/mod/dumb.js b/server/src/commands/mod/dumb.js
index 644bd4f..89aad4b 100644
--- a/server/src/commands/mod/dumb.js
+++ b/server/src/commands/mod/dumb.js
@@ -63,8 +63,8 @@ export async function run(core, server, socket, data) {
// module hook functions
export function initHooks(server) {
- server.registerHook('in', 'chat', this.chatCheck, 25);
- server.registerHook('in', 'invite', this.inviteCheck, 25);
+ server.registerHook('in', 'chat', this.chatCheck.bind(this), 25);
+ server.registerHook('in', 'invite', this.inviteCheck.bind(this), 25);
// TODO: add whisper hook, need hook priorities todo finished first
}