From 05cd889a4e99d163a1c797ddf121943e968ee01c Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 8 Apr 2013 23:51:28 +0000 Subject: [PATCH] Don't dent new quote additions if it includes interpolation notation. --- modules/dent/dent.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/dent/dent.js b/modules/dent/dent.js index 311d9d0..fcbb8a4 100644 --- a/modules/dent/dent.js +++ b/modules/dent/dent.js @@ -59,7 +59,9 @@ var dent = function(dbot) { this.onLoad = function() { if(dbot.config.dent.dentQuotes === true && _.has(dbot.modules, 'quotes')) { dbot.api.command.addHook('~qadd', function(key, text) { - this.api.post(key + ': ' + text); + if(text.indexOf('~~') == -1) { + this.api.post(key + ': ' + text); + } }.bind(this)); } }.bind(this);