 
 exports.filterMaps = (desired, mapList) ->
 
-  mapList.filter (map) -> map.indexOf(desired) isnt -1
+  mapList.filter((map) -> map.indexOf(desired) isnt -1)
 
 exports.newLobby = (map, principal, server) ->
   {

        ctx.close()
      )

      today = robot.brain.get 'today'

      today = { players: {}, maps: {} } unless today?

      for player in players
        if today.players.hasOwnProperty player
          today.players[player]++
        else
          today.players[player] = 1

      if today.maps.hasOwnProperty lobby.map
        today.maps[lobby.map]++
      else
        today.maps[lobby.map] = 1

      robot.brain.set 'today', today

      robot.brain.set 'lobby', null
      robot.brain.set 'previous', lobby
      msg.send "be a darling and click the link: steam://connect/#{server.host}:#{server.port}/#{server.password}"
      msg.send "no guarantee can be made that your place will still be available if you're late."
      return msg.send "also, if you're late often, a suitable punishment will be awarded."

    lobby.finalising = false
    robot.brain.set 'lobby', lobby
    return msg.send "#{msg.random(responses.mistake)}  it looks like we didn't find enough players in time. but never fear! tfbot is here to comfort you while you cry yourself to sleep."

exports.onLeave = (robot, msg) ->
  lobby = robot.brain.get 'lobby'
  return unless lobby?

  user = msg.message.user.id


  if user in players
    delete lobby.participants[user]
    robot.brain.set('lobby', lobby)
    return msg.send("|| #{lobby.server} | #{lobby.map} | #{players.length}/12 | [ #{players.join(', ')} ] ||")

exports.rconSay = (robot, msg) ->
  user = msg.message.user.id
