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

Denting quotes optional [#181]

This commit is contained in:
reality 2013-01-21 19:07:25 +00:00
parent c061109b55
commit 1958db6df1
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,6 @@
{ {
"username": "youruserhere", "username": "youruserhere",
"password": "yourpasswordhere", "password": "yourpasswordhere",
"ignorable": true "ignorable": true,
"dentQuotes": false
} }

View File

@ -34,12 +34,10 @@ var dent = function(dbot) {
this.commands['~dent'].regex = [/^~dent (.+)$/, 2]; this.commands['~dent'].regex = [/^~dent (.+)$/, 2];
this.onLoad = function() { this.onLoad = function() {
if(dbot.config.dent.dentQuotes === true) {
dbot.api.command.addHook('~qadd', function(key, text) { dbot.api.command.addHook('~qadd', function(key, text) {
this.api.post(key + ': ' + text); this.api.post(key + ': ' + text);
}.bind(this)); }.bind(this));
if(_.has(dbot.modules, 'quotes')) {
} }
}.bind(this); }.bind(this);
}; };