Skip to content

Commit

Permalink
Update plusplus.js (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Mutt committed Jul 11, 2023
1 parent 95b96f7 commit c6ba47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messageHandlers/plusplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = function plusplus(robot) {
if (mentions) {
to = mentions
.filter((men) => men.type === 'user')
.filter((men, pos, self) => self.indexOf(s => s.name === men.name) === pos);
.filter((men, pos, self) => self.indexOf(s => s.id === men.id) === pos);
}
const cleanReason = Helpers.cleanAndEncode(reason);
const increment = operator.match(RegExpPlusPlus.positiveOperators) ? 1 : -1;
Expand Down

0 comments on commit c6ba47c

Please sign in to comment.