           matches = option.match(projectRE)
           if matches? and matches.length > 1
             project = matches[1]
-          
+
         getBuildTypes msg, project, (err, msg, buildTypes) ->
           message = ""
           for buildType in buildTypes

        if buildTypeMatches?
          configuration = buildTypeMatches[1]
          project = buildTypeMatches[2]
   
        getBuilds msg, project, configuration, (err, msg, builds) ->
          if not builds
            msg.send "Could not find builds for #{option}"
            return

          for build in builds
            mapBuildTypeIdToName msg, build['buildTypeId'], (err, msg, name)->
              baseMessage = "##{build.number} of #{name} #{build.webUrl}"
              if build.running
                status = if build.status == "SUCCESS" then "**Winning**" else "__FAILING__"
                message = "#{status} #{build.percentageComplete}% Complete :: #{baseMessage}"
              else
                status = if build.status == "SUCCESS" then "OK!" else "__FAILED__"
                message = "#{status} :: #{baseMessage}"

              msg.send message

        err = body unless res.statusCode == 200
        callback err, body, msg

  getCurrentBuilds = (msg, type, callback) ->
    if (arguments.length == 2)
      if (Object.prototype.toString.call(type) == "[object Function]")
        callback = type
