Merge pull request #212 from scorphus/fix-whois

fix(whois): check if there's at least one argument to `whois`
This commit is contained in:
Vladimir Iakovlev
2015-05-21 00:33:22 +03:00
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def match(command, settings):
- www.google.fr → subdomain: www, domain: 'google.fr';
- google.co.uk → subdomain: None, domain; 'google.co.uk'.
"""
return 'whois' in command.script
return 'whois' in command.script and len(command.script.split()) > 1
def get_new_command(command, settings):