   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

#   HUBOT_JIRA_IGNOREUSERS
#
# Commands:
#   <Project Key>-<Issue ID> - Displays information about the ticket (if it exists)
#   hubot show watchers for <Issue Key> - Shows watchers for the given issue
#   hubot search for <JQL> - Search JIRA with JQL
#   hubot save filter <JQL> as <name> - Save JQL as filter in the brain
#   hubot use filter - Use a filter from the brain
#   hubot show filter(s) - Show all filters
#   hubot show filter <name> - Show a specific filter
#
# Author:
#   codec

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

    @cache = result
