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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/core/changenick.js b/server/src/commands/core/changenick.js
index 28d8de3..ae057b3 100644
--- a/server/src/commands/core/changenick.js
+++ b/server/src/commands/core/changenick.js
@@ -85,10 +85,10 @@ exports.run = async (core, server, socket, data) => {
// module hook functions
exports.initHooks = (server) => {
- server.registerHook('in', 'chat', this.nickCheck);
+ server.registerHook('in', 'chat', this.nickCheck, 29);
};
-// hooks chat commands checking for /whisper
+// hooks chat commands checking for /nick
exports.nickCheck = (core, server, socket, payload) => {
if (typeof payload.text !== 'string') {
return false;