diff --git a/sherlock.py b/sherlock.py index 02e41bf2..1c63fbd8 100755 --- a/sherlock.py +++ b/sherlock.py @@ -202,9 +202,11 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr # Don't make request if username is invalid for the site regex_check = net_info.get("regexCheck") - if regex_check and re.search(regex_check, username) is None and not print_found_only: + if regex_check and re.search(regex_check, username) is None: # No need to do the check at the site: this user name is not allowed. - print_invalid(social_network, "Illegal Username Format For This Site!") + if not print_found_only: + print_invalid(social_network, "Illegal Username Format For This Site!") + results_site["exists"] = "illegal" results_site["url_user"] = "" results_site['http_status'] = ""