diff --git a/agents/meshcore.js b/agents/meshcore.js index 7862125e..c02bbdea 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -2574,7 +2574,6 @@ function createMeshCore(agent) { } } - // Starting function obj.start = function () { // Setup the mesh agent event handlers diff --git a/agents/meshcore.min.js b/agents/meshcore.min.js index 7862125e..c02bbdea 100644 --- a/agents/meshcore.min.js +++ b/agents/meshcore.min.js @@ -2574,7 +2574,6 @@ function createMeshCore(agent) { } } - // Starting function obj.start = function () { // Setup the mesh agent event handlers diff --git a/meshagent.js b/meshagent.js index 708a7e2e..ac68a7af 100644 --- a/meshagent.js +++ b/meshagent.js @@ -1278,11 +1278,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { if ((parent.parent.pluginHandler == null) || (typeof command.plugin != 'string')) break; try { var pluginHandler = require('./pluginHandler.js').pluginHandler(parent.parent); - if (command.plugin == '__all') { - pluginHandler.callHook(command.hook, command, obj, parent); - } else { - pluginHandler.plugins[command.plugin].serveraction(command, obj, parent); - } + pluginHandler.plugins[command.plugin].serveraction(command, obj, parent); } catch (e) { console.log('Error loading plugin handler (' + e + ')'); }