diff --git a/pluginHandler.js b/pluginHandler.js index ced5d439..ea487651 100644 --- a/pluginHandler.js +++ b/pluginHandler.js @@ -70,7 +70,7 @@ module.exports.pluginHandler = function (parent) { obj.callHook = function(hookName, ...args) { for (const p of Object.keys(obj)) { if (typeof obj[p][hookName] == 'function') { - obj[p][hookName](args); + obj[p][hookName].apply(this, args); } } };