From a48830165536fa7181b2e9df211300141661d9d4 Mon Sep 17 00:00:00 2001 From: marzavec Date: Thu, 21 Feb 2019 00:43:25 -0800 Subject: Core hook upgrade, misc fixes (See ChangeLog.md tbh) --- server/src/commands/admin/reload.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/src/commands/admin') diff --git a/server/src/commands/admin/reload.js b/server/src/commands/admin/reload.js index f40d0b2..947f9d9 100644 --- a/server/src/commands/admin/reload.js +++ b/server/src/commands/admin/reload.js @@ -9,13 +9,12 @@ exports.run = async (core, server, socket, data) => { return server._police.frisk(socket.remoteAddress, 20); } - // do command reloads and store results + // do command reload and store results let loadResult = core.managers.dynamicImports.reloadDirCache('src/commands'); loadResult += core.commands.loadCommands(); // clear and rebuild all module hooks - server.clearHooks(); - core.commands.initCommandHooks(server); + server.loadHooks(); // build reply based on reload results if (loadResult == '') { -- cgit v1.2.1