     bl =
       created: moment().format()
       expires: moment().add(1, 'months').format()
-      type = msg.match[1]
-      val = msg.match[2]
+      type: msg.match[1]
+      val: msg.match[2]
     if msg.match.length > 2
       expires = msg.match[3]
       extra = expires.match(/+(\d)([hdwMQy])/)

    robot.send {room: msg.message?.user?.name}, cmds.join "\n"

  robot.respond /fw (?:blacklist|b)$/i, (msg) ->
    robot.logger.info "#{modulename}: #{msg.envelope.user.name} requested: blacklist"
    data = fs.readFileSync blacklistfile, 'utf-8'

    robot.send {room: msg.message?.user?.name}, data.join "\n"

        bl.expires = moment(expires)
      else
        failed = true
        logmsg = "invalid expiration date: #{expires}"
        robot.send {room: msg.message?.user?.name}, logmsg
    
    unless failed
      logmsg = "#{modulename}: #{msg.envelope.user.name} requested: " +
        "blacklist #{bl.type} #{bl.val} expires #{bl.expires}"
      robot.logger.info logmsg
      data.push bl
      fs.writeFileSync blacklistfile, JSON.stringify(data), 'utf-8'
