From d08eee8f13e83ddcd48ffb660f22bb51c3262bad Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 26 Jun 2008 16:30:23 +0000 Subject: [PATCH] Made httpUrl arg wrapper add http:// if that produces a valid http url. --- src/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.py b/src/commands.py index 4f0bbf0d9..272bf99f9 100644 --- a/src/commands.py +++ b/src/commands.py @@ -498,6 +498,8 @@ def getEmail(irc, msg, args, state): def getHttpUrl(irc, msg, args, state): if utils.web.httpUrlRe.match(args[0]): state.args.append(args.pop(0)) + elif utils.web.httpUrlRe.match('http://' + args[0]): + state.args.append('http://' + args.pop(0)) else: state.errorInvalid('http url', args[0])