     result = null
 
     @cache.forEach (filter) ->
-      if filter.name is name
+      if filter.name.toLowerCase() is name.toLowerCase()
         result = filter
 
     result

  delete: (name) ->
    result = []
    @cache.forEach (filter) ->
      if filter.name isnt name
        result.push filter

    @cache = result

  robot.respond /(use )?filter (.*)/i, (msg) ->
    name    = msg.match[2]
    filter  = filters.get name
    
    if not filter
      msg.reply "Sorry, could not find filter #{name}"
      return

    search msg, filter.jql, (text) ->
      msg.reply text
