Woops, fix wrong reference to config
This commit is contained in:
parent
2880fe0e0b
commit
bd3665805b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue