     @log "Sending custom message"
     user = @userFromParams message
 
-    attachments = []
-    attachments.push
+    attachment =
       text     : @escapeHtml data.text
       fallback : @escapeHtml data.fallback
       pretext  : @escapeHtml data.pretext

  # The star.
  ###################################################################
  run: ->
    @robot.on 'slack-attachment', (payload)=>
      @custom(payload.message, payload.content)

    self = @
    @parseOptions()

    @log "Slack adapter options:", @options

    return @logError "No services token provided to Hubot" unless @options.token
    return @logError "No team provided to Hubot" unless @options.team

    # Listen to incoming webhooks from slack
    self.robot.router.post "/hubot/slack-webhook", (req, res) ->

    args = JSON.stringify
      username    : @robot.name
      channel     : user.reply_to
      attachments : [attachment]
      link_names  : @options.link_names
    @post "/services/hooks/hubot", args
  ###################################################################
