diff --git a/modules/admin.js b/modules/admin.js index d20a488..7c5962f 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -134,7 +134,11 @@ var adminCommands = function(dbot) { } }, - 'on': 'PRIVMSG' + 'on': 'PRIVMSG', + + 'name': 'admin', + + 'ignorable': false }; }; diff --git a/modules/autoshorten.js b/modules/autoshorten.js index 3f5c92a..eb0cf7c 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -27,7 +27,11 @@ var autoshorten = function(dbot) { } }, - 'on': 'PRIVMSG' + 'on': 'PRIVMSG', + + 'name': 'autoshorten', + + 'ignorable': true }; } diff --git a/modules/command.js b/modules/command.js index fcbb291..55b3168 100644 --- a/modules/command.js +++ b/modules/command.js @@ -6,7 +6,69 @@ var command = function(dbot) { return { 'onLoad': function() { return { - '~ignore': null + '~ignore': function(data, params) { + var ignorableModules = []; + for(var i=0;i