From 1958db6df1a6f5e8fc1a19d525d7750d8aa4b388 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 21 Jan 2013 19:07:25 +0000 Subject: [PATCH] Denting quotes optional [#181] --- modules/dent/config.json | 3 ++- modules/dent/dent.js | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) 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); };