Woops, fix wrong reference to config

This commit is contained in:
Joakim Stai 2015-02-16 11:43:01 +01:00
parent 2880fe0e0b
commit bd3665805b
1 changed files with 2 additions and 2 deletions

View File

@ -85,9 +85,9 @@ Slackus.prototype.sendMessage = function(message, forum) {
var options = this.config.slack.options || {};
options.text = message;
if (config.slack.mention) {
if (this.config.slack.mention) {
options.link_names = 1;
options.text = '@' + config.slack.mention.split(',').join(' @') + ' ' + options.text;
options.text = '@' + this.config.slack.mention.split(',').join(' @') + ' ' + options.text;
}
this.slack.send(options, function(error) {