Skip to content

Commit

Permalink
Fixed check for preventing bot from answer on its message
Browse files Browse the repository at this point in the history
  • Loading branch information
okovpashko committed Sep 22, 2015
1 parent da6ec04 commit c3346f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jira-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ JiraBot.prototype._onMessage = function ( message ) {
text = message.text,
issueKeys;

if ( message.type !== 'message' || user === slack.self.name || !text || self.config.allowChannels.indexOf( channel.name ) === -1 ) {
if ( message.type !== 'message' || user.id === slack.self.id || !text || self.config.allowChannels.indexOf( channel.name ) === -1 ) {
return;
}

Expand Down

0 comments on commit c3346f4

Please sign in to comment.