Skip to content

Commit

Permalink
Merge pull request hubotio#39 from assaf/master
Browse files Browse the repository at this point in the history
Fix to public room behavior
  • Loading branch information
atmos committed Oct 26, 2011
2 parents 0ee12dd + f34738d commit 8ea2b17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hubot/hipchat.coffee
Expand Up @@ -43,7 +43,8 @@ class HipChat extends Robot
bot.onError (message, stanza)->
console.log "Received error from HipChat:", message, stanza
bot.onMessage /^\s*@hubot\s/i, (channel, from, message)->
author = self.userForId(from.match(/_(\d+)@/)[1])
console.log from
author = self.userForName(from)
author.room = channel
self.receive new Robot.Message(author, message.replace(/^\s*@hubot\s+/, "Hubot: "))
bot.onPrivateMessage (from, message)=>
Expand Down

0 comments on commit 8ea2b17

Please sign in to comment.