Skip to content

Commit

Permalink
Do the same conversion when talking directly to Hubot (one-on-one
Browse files Browse the repository at this point in the history
room).
  • Loading branch information
assaf committed Oct 26, 2011
1 parent 88682a3 commit b7b735b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hubot/hipchat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HipChat extends Robot
self.receive new Robot.Message(author, message.replace(/^\s*@hubot\s+/, "Hubot: "))
bot.onPrivateMessage (from, message)=>
author = self.userForId(from)
self.receive new Robot.Message(author, message)
self.receive new Robot.Message(author, "Hubot: #{message}")
bot.connect()

@bot = bot
Expand Down

0 comments on commit b7b735b

Please sign in to comment.