aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/changenick.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/core/changenick.js')
-rw-r--r--server/src/commands/core/changenick.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands/core/changenick.js b/server/src/commands/core/changenick.js
index 632da83..6dbdfd2 100644
--- a/server/src/commands/core/changenick.js
+++ b/server/src/commands/core/changenick.js
@@ -87,7 +87,7 @@ export async function run(core, server, socket, data) {
// module hook functions
export function initHooks(server) {
- server.registerHook('in', 'chat', this.nickCheck, 29);
+ server.registerHook('in', 'chat', this.nickCheck.bind(this), 29);
}
// hooks chat commands checking for /nick