Skip to content

Commit

Permalink
Merge pull request thelounge#2 from MaxLeiter/master
Browse files Browse the repository at this point in the history
Ignore Wendy (@xPaw's GH bot)
  • Loading branch information
Max Leiter committed Mar 7, 2016
2 parents 8dcd3cf + dc432f6 commit 8f3edc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bot.addListener("message", function(from, to, text) {
}
//Just a message
} else {
if (text.indexOf("#") > -1 && from.toLowerCase().indexOf("github") === -1) {
if (text.indexOf("#") > -1 && from.toLowerCase().indexOf("wendy") === -1) {
//this regex (thanks @Max-P and ##regex) checks if there's a free-floating # followed by an infinite amount of characters between 0 and 9.
var issues = text.match(/#([0-9]*)/g);
if(issues) {
Expand Down

0 comments on commit 8f3edc4

Please sign in to comment.