diff --git a/src/bot.coffee b/src/bot.coffee index 8779dc0a..3198a91e 100644 --- a/src/bot.coffee +++ b/src/bot.coffee @@ -238,7 +238,7 @@ class SlackBot extends Adapter # Hubot expects all user objects to have a room property that is used in the envelope for the message after it # is received - user.room = if channel? then channel else "" + user.room = channel ? "" switch event.subtype when "bot_message"