mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-03 17:01:05 -05:00
Made httpUrl arg wrapper add http:// if that produces a valid http url.
This commit is contained in:
parent
526e71e104
commit
d08eee8f13
@ -498,6 +498,8 @@ def getEmail(irc, msg, args, state):
|
|||||||
def getHttpUrl(irc, msg, args, state):
|
def getHttpUrl(irc, msg, args, state):
|
||||||
if utils.web.httpUrlRe.match(args[0]):
|
if utils.web.httpUrlRe.match(args[0]):
|
||||||
state.args.append(args.pop(0))
|
state.args.append(args.pop(0))
|
||||||
|
elif utils.web.httpUrlRe.match('http://' + args[0]):
|
||||||
|
state.args.append('http://' + args.pop(0))
|
||||||
else:
|
else:
|
||||||
state.errorInvalid('http url', args[0])
|
state.errorInvalid('http url', args[0])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user