mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
ignorableModules now built with filter, module.toString returns name
This commit is contained in:
parent
85fc4d6e6f
commit
078c4cf3e3
@ -7,11 +7,9 @@
|
||||
var ignore = function(dbot) {
|
||||
var commands = {
|
||||
'~ignore': function(event) {
|
||||
var ignorableModules = [];
|
||||
|
||||
dbot.modules.each(function(module) {
|
||||
var ignorableModules = dbot.modules.filter(function(module) {
|
||||
if(module.ignorable != null && module.ignorable == true) {
|
||||
ignorableModules.push(module.name);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
var module = event.params[1];
|
||||
|
Loading…
Reference in New Issue
Block a user