         msg.send "Trac r#{revision}: #{author} #{time} #{url}"
         msg.send line for line in message.split("\n")
 
-  # listen for ticket links
-  robot.hear /([^\w]|^)\#(\d+)(?=[^\w]|$)/ig, (msg) ->
+  # fetch ticket information using scraping or jsonrpc
+  fetchTicket = (msg) ->
     if (ignoredusers.some (user) -> user == msg.message.user.name)
       console.log 'ignoring user due to blacklist:', msg.message.user.name
       return

        else
          msg.send "Trac \##{ticket}: #{process.env.HUBOT_TRAC_URL}/ticket/#{ticket}"


  # listen for changesets 
  handleChangeset = (msg) ->

#                           Example: "Subversion,TeamCity,John Doe"
# Commands:
#   #123 - Show details about a Trac ticket
#   Full ticket URL - Show details about a Trac ticket
#   r123 - Show details about a commit
#   [123] - Show details about a commit
#
