Don't dent new quote additions if it includes interpolation notation.

This commit is contained in:
reality 2013-04-08 23:51:28 +00:00
parent 4a27036307
commit 05cd889a4e

View File

@ -59,7 +59,9 @@ var dent = function(dbot) {
this.onLoad = function() { this.onLoad = function() {
if(dbot.config.dent.dentQuotes === true && _.has(dbot.modules, 'quotes')) { if(dbot.config.dent.dentQuotes === true && _.has(dbot.modules, 'quotes')) {
dbot.api.command.addHook('~qadd', function(key, text) { 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));
} }
}.bind(this); }.bind(this);