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:
parent
4a27036307
commit
05cd889a4e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user