Skip to content

Commit

Permalink
Merge pull request #70 from Adslot/master
Browse files Browse the repository at this point in the history
Listen to channel messages through HipChat adapter
  • Loading branch information
tmm1 committed Oct 27, 2011
2 parents 77eb473 + 61e0bc6 commit a4a6d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hubot/hipchat.coffee
Expand Up @@ -58,7 +58,7 @@ class HipChat extends Robot
bot.onMessage (channel, from, message)->
author = { name: from, reply_to: channel }
hubot_msg = message.replace(mention, "#{self.name}: ")
self.receive new Robot.Message(author, hubot_msg)
self.receive new Robot.TextMessage(author, hubot_msg)
bot.onPrivateMessage (from, message)=>
user = self.userForId(from.match(/_(\d+)@/)[1])
author = { name: user.name, reply_to: from }
Expand Down

0 comments on commit a4a6d50

Please sign in to comment.