diff options
author | marzavec <admin@marzavec.com> | 2019-02-21 09:43:25 +0100 |
---|---|---|
committer | marzavec <admin@marzavec.com> | 2019-02-21 09:43:25 +0100 |
commit | a48830165536fa7181b2e9df211300141661d9d4 (patch) | |
tree | 3a60ed1934880d08e3c18b581c82a315e62d9bc6 /server/src/commands/admin | |
parent | Minor module changes (diff) | |
download | hackchat-a48830165536fa7181b2e9df211300141661d9d4.tar.gz hackchat-a48830165536fa7181b2e9df211300141661d9d4.zip |
Core hook upgrade, misc fixes
(See ChangeLog.md tbh)
Diffstat (limited to 'server/src/commands/admin')
-rw-r--r-- | server/src/commands/admin/reload.js | 5 |
1 files changed, 2 insertions, 3 deletions
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 == '') { |