Permalink
Browse files

Twitter API returns a full URL for the source and we need to match it

  • Loading branch information...
1 parent 8b77e0b commit da025e45cc135a5dd7f5c93f6ae5417a0c5e0eba Neil_Cauldwell committed Jan 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/twitter.coffee
View
@@ -1,6 +1,6 @@
{
"name": "hubot-twitter-nc",
- "version": "2.0.5",
+ "version": "2.0.6",
"author": "Neil Cauldwell",
"keywords": [
"github hubot twitter adapter fork"
View
@@ -34,7 +34,7 @@ class Twitter extends Adapter
message = data.text.replace reg, self.robot.name
console.log "hubot command: #{message}"
- if data.source == "Nurph"
+ if data.source == '<a href="http://nurph.com" rel="nofollow">Nurph</a>'
console.log "This tweet came from #{data.source} so I won't respond."
else
self.receive new Robot.TextMessage data.user.screen_name, message

0 comments on commit da025e4

Please sign in to comment.