mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 09:37:25 +01: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):
 | 
			
		||||
    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])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user