     robot.logger.info logmsg
 
   robot.respond /fw (?:blacklist|b) add (url|cidr) ([^ ]+)(?: ([^ ]+)|)$/i, (msg) ->
-    unless isAuthorized robot, msg, ['fw','sudo']
-      errmsg = "Only users with fw and sudo roles allowed this command."
-      return msg.reply errmsg
+    return unless isAuthorized robot, msg
+    return unless isSudo msg
 
     bl =
       created: moment().format()


modulename = 'fw'
blacklistfile = modulename + ".json"

module.exports = (robot) ->


      robot.logger.info logmsg

  robot.respond /fw (?:blacklist|b) (?:delete|del|d) (url|cidr) ([^ ]+)$/i, (msg) ->
    return unless isAuthorized robot, msg
    return unless isSudo msg

    bl_type = msg.match[1]
    bl_search = msg.match[2]
