             cb info
       else
         cb resultText + " (too many to list)"
-  
+
   robot.respond /(show )?watchers (for )?(\w+-[0-9]+)/i, (msg) ->
     if msg.message.user.id is robot.name
       return
 
     watchers msg, msg.match[3], (text) ->
-      msg.reply text
+      msg.send text
   
   robot.respond /search (for )?(.*)/i, (msg) ->
     if msg.message.user.id is robot.name

class RecentIssues
  constructor: (@maxage) ->
    @issues = []

  cleanup: ->
    for issue,time of @issues
      age = Math.round(((new Date()).getTime() - time) / 1000)
      if age > @maxage
        #console.log 'removing old issue', issue
        delete @issues[issue]
    0

# show filter(s)                - Show all filters
# show filter <name>            - Show a specific filter

# Required environment variables:
# * HUBOT_JIRA_URL: Base URL to JIRA instance, without trailing slash eg: https://myserver.com/jira 
# * HUBOT_JIRA_USER: JIRA username
# * HUBOT_JIRA_PASSWORD: JIRA password
# Optional environment variables:
# * HUBOT_JIRA_USE_V2: "true" to use v2 of the JIRA REST API, defaults to "false" (v1)
# * HUBOT_JIRA_MAXLIST: maximum number of items to show for a JQL query, defaults to 10
# * HUBOT_JIRA_ISSUEDELAY: number of seconds to not show a ticket for again after it's been 
#                          mentioned once. This helps to cut down on noise from the bot.
#                          Defaults to 30.
# * HUBOT_JIRA_IGNOREUSERS: Comma-seperated list of users to ignore "hearing" issues from.
#                           This works well with other bots or API calls that post to the room.
#                           Example: "Subversion,TeamCity,John Doe"

class IssueFilters
  constructor: (@robot) ->
    @cache = []
