Protection for links.
This commit is contained in:
		
							
								
								
									
										2
									
								
								bot.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bot.sh
									
									
									
									
									
								
							@@ -92,7 +92,9 @@ set +f
 | 
			
		||||
      # Trigger stuff happens here.
 | 
			
		||||
      # Call link trigger if msg contains a link:
 | 
			
		||||
      if [[ "$result" =~ .*http://|https://|www\..* ]]; then
 | 
			
		||||
        set -f
 | 
			
		||||
        ./triggers/link/link.sh "$who" "$from" "$result"
 | 
			
		||||
        set -f
 | 
			
		||||
      # Although this calls modules, it triggers on text other than the bot's nick
 | 
			
		||||
      elif [[ "$result" =~ ^.*PRIVMSG.*:[[:punct:]].* ]]; then
 | 
			
		||||
        command="${result#*:[[:punct:]]}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user