copying from hubot-hipchat issue #112