def forbid_command(command_obj, cc_list=None, config=None):
 if (cc_list is None):
  cc_list = command_obj.COMMAND_SECURITY
 if cc_list:
  for cc in cc_list:
   forbid = cc((config or command_obj.session.config))
   if forbid:
    return forbid
 return False

def forbid_command ( command_obj , cc_list = None , config = None ) : if ( cc_list is None ) : cc_list = command_obj . COMMAND_SECURITY if cc_list : for cc in cc_list : forbid = cc ( ( config or command_obj . session . config ) ) if forbid : return forbid return False
determine whether to block a command or not .