def add_domains(args_or_config, domains):
 validated_domains = []
 for domain in domains.split(','):
  domain = util.enforce_domain_sanity(domain.strip())
  validated_domains.append(domain)
  if (domain not in args_or_config.domains):
   args_or_config.domains.append(domain)
 return validated_domains

def add_domains ( args_or_config , domains ) : validated_domains = [ ] for domain in domains . split ( ',' ) : domain = util . enforce_domain_sanity ( domain . strip ( ) ) validated_domains . append ( domain ) if ( domain not in args_or_config . domains ) : args_or_config . domains . append ( domain ) return validated_domains
registers new domains to be used during the current client run .