diff --git a/modules/dent/config.json b/modules/dent/config.json index a55d2eb..527dc55 100644 --- a/modules/dent/config.json +++ b/modules/dent/config.json @@ -1,5 +1,6 @@ { "username": "youruserhere", "password": "yourpasswordhere", - "ignorable": true + "ignorable": true, + "dentQuotes": false } diff --git a/modules/dent/dent.js b/modules/dent/dent.js index c6b1f8e..4e3b425 100644 --- a/modules/dent/dent.js +++ b/modules/dent/dent.js @@ -34,12 +34,10 @@ var dent = function(dbot) { this.commands['~dent'].regex = [/^~dent (.+)$/, 2]; this.onLoad = function() { - dbot.api.command.addHook('~qadd', function(key, text) { - this.api.post(key + ': ' + text); - }.bind(this)); - - if(_.has(dbot.modules, 'quotes')) { - + if(dbot.config.dent.dentQuotes === true) { + dbot.api.command.addHook('~qadd', function(key, text) { + this.api.post(key + ': ' + text); + }.bind(this)); } }.bind(this); };