 #   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
+#   <Project Key>-<Issue ID> - Displays information about the JIRA ticket (if it exists)
+#   hubot show watchers for <Issue Key> - Shows watchers for the given JIRA 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
+#   hubot save filter <JQL> as <name> - Save JIRA JQL query as filter in the brain
+#   hubot use filter <name> - Use a JIRA filter from the brain
+#   hubot show filter(s) - Show all JIRA filters
+#   hubot show filter <name> - Show a specific JIRA filter
 #
 # Author:
 #   codec

    result = null

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

    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
