3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

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() {
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);