mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	Removed extra logging information; limited "yourself" check to one word
This commit is contained in:
		
							parent
							
								
									41bb89eba2
								
							
						
					
					
						commit
						3aa0982baf
					
				@ -189,9 +189,7 @@ sub interpret {
 | 
			
		||||
  $arguments =~ s/\bme\b/\$nick/gi if defined $arguments;
 | 
			
		||||
  $arguments =~ s/\/\$nick/\/me/gi if defined $arguments;
 | 
			
		||||
 | 
			
		||||
  $pbot->logger->log("keyword: [$keyword], arguments: [" . (defined $arguments ? $arguments : "(undef)") . "], tonick: [" . (defined $tonick ? $tonick : "(undef)") . "]\n");
 | 
			
		||||
 | 
			
		||||
  if(defined $arguments && $arguments =~ m/\b(your|him|her|its|it|them|their)(self|selves)\b/i) {
 | 
			
		||||
  if(defined $arguments && $arguments =~ m/^(your|him|her|its|it|them|their)(self|selves)$/i) {
 | 
			
		||||
    return "Why would I want to do that to myself?";
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user