Skip to content

Commit

Permalink
Log the body value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil_Cauldwell committed Feb 2, 2012
1 parent 4d832b0 commit 418d63d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "hubot-twilio-nc",
"version": "2.0.4",
"version": "2.0.5",
"author": "Neil Cauldwell",
"keywords": "github hubot twilio forked adapter",
"description": "A fork of the original Twilio adapter for hubot",
Expand Down
4 changes: 3 additions & 1 deletion src/twilio.coffee
Expand Up @@ -43,7 +43,9 @@ class Twilio extends Adapter
return if body.length is 0
user = @userForId from

console.log "#{body.match(/^Nurph\b/i)}"
console.log "body: #{body}"
console.log "body.match(/^Nurph\b/i): #{body.match(/^Nurph\b/i)}"

if body.match(/^Nurph\b/i) is null
console.log "I'm adding 'Nurph' as a prefix."
body = 'Nurph' + '' + body
Expand Down

0 comments on commit 418d63d

Please sign in to comment.