diff options
author | Sean B. Palmer <sbp@aldebaran.local> | 2011-06-17 16:50:21 +0100 |
---|---|---|
committer | Sean B. Palmer <sbp@aldebaran.local> | 2011-06-17 16:50:21 +0100 |
commit | 5261461f70ccd069768033edfa056c0e24c75131 (patch) | |
tree | f55aec64ede4fa6945913de1d37113f02164017a /modules/validate.py | |
parent | 12c8cd07f52883299ed628752b580462c31ce9f1 (diff) | |
parent | bbd2c7f94320a1e831c58acaac3a361b71caefea (diff) | |
download | bot-5261461f70ccd069768033edfa056c0e24c75131.tar.gz bot-5261461f70ccd069768033edfa056c0e24c75131.tar.bz2 bot-5261461f70ccd069768033edfa056c0e24c75131.zip |
Merge branch 'master' of github.com:sbp/phenny
Diffstat (limited to 'modules/validate.py')
-rwxr-xr-x | modules/validate.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/validate.py b/modules/validate.py index 185623f..85815d1 100755 --- a/modules/validate.py +++ b/modules/validate.py @@ -11,6 +11,8 @@ import web def val(phenny, input): """Check a webpage using the W3C Markup Validator.""" + if not input.group(2): + return phenny.reply("Nothing to validate.") uri = input.group(2) if not uri.startswith('http://'): uri = 'http://' + uri |