 
 modulename = 'fw'
 fwdata_file = modulename + ".json"
+safety_fail_note = 'If this is time critical ask a human; otherwise please open a ticket.'
 displayfmt = '%-4s %-50s %-15s %s'
 timefmt = 'YYYY-MM-DD HH:mm:ss ZZ'
 svcQueueIntervalMs = 300 * 1000


    # safety check !!
    if entry.val.toLowerCase().match /(?:alaska|uaf)\.edu$/
      usermsg = "Blocking alaska.edu or uaf.edu not allowed. "+
        " If this is time critical ask a human for help; otherwise open a ticket."
      notifySubscribers "Request by #{who} failed safety check: #{fullcmd}\nReason: #{usermsg}"
      return msg.reply usermsg

  else
    entry.type = 'url'


    # safety check !!
    if entry.val.toLowerCase().match /[^\/]+(?:alaska|uaf)\.edu/
      usermsg = "Blocking alaska.edu or uaf.edu is not allowed. #{safety_fail_note}"
      logmsg = "#{modulename}: Request by #{who} failed safety check: #{fullcmd}"
      robot.logger.info logmsg
      notifySubscribers "#{logmsg}\nReason: #{usermsg}"
      #msg.reply usermsg

      return

  #console.log "#{l_val}: #{entry.type} => #{entry.val}"

