mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
Fix [#442]
This commit is contained in:
parent
8f9b44d4f0
commit
84bd092bae
@ -3,5 +3,6 @@
|
|||||||
"dependencies": [ "command", "users" ],
|
"dependencies": [ "command", "users" ],
|
||||||
"rmLimit": 10,
|
"rmLimit": 10,
|
||||||
"ignorable": true,
|
"ignorable": true,
|
||||||
|
"quotesOnJoin": false,
|
||||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/quotes/README.md"
|
"help": "http://github.com/reality/depressionbot/blob/master/modules/quotes/README.md"
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,13 @@ var quotes = function(dbot) {
|
|||||||
event.action = 'PRIVMSG';
|
event.action = 'PRIVMSG';
|
||||||
event.params = event.message.split(' ');
|
event.params = event.message.split(' ');
|
||||||
dbot.instance.emit(event);
|
dbot.instance.emit(event);
|
||||||
}
|
}
|
||||||
} else if(event.action == 'JOIN') {
|
} else if(event.action == 'JOIN') {
|
||||||
var userQuote = this.api.getQuote(event, event.user)
|
if(this.config.quotesOnJoin == true) {
|
||||||
if(userQuote) {
|
var userQuote = this.api.getQuote(event, event.user)
|
||||||
event.reply(event.user + ': ' + this.api.getQuote(event, event.user));
|
if(userQuote) {
|
||||||
|
event.reply(event.user + ': ' + this.api.getQuote(event, event.user));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user