mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Core/Interpreter: require whitespace in front of bot name for suffix-trigger
This commit is contained in:
		
							parent
							
								
									38a0b8705f
								
							
						
					
					
						commit
						f3ad345340
					
				@ -152,7 +152,7 @@ sub process_line($self, $from, $nick, $user, $host, $text, $tags = '', $is_comma
 | 
			
		||||
    } elsif ($cmd_text =~ m/^.?\s*$botnick\s*[[:punct:]]?\s+(.+)$/i) {
 | 
			
		||||
        # "botnick: command"
 | 
			
		||||
        $command = $1;
 | 
			
		||||
    } elsif ($cmd_text =~ m/^(.+?),?\s*$botnick[?!.]*$/i) {
 | 
			
		||||
    } elsif ($cmd_text =~ m/^(.+?),?\s+$botnick[?!.]*$/i) {
 | 
			
		||||
        # "command, botnick?"
 | 
			
		||||
        $command = $1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -25,8 +25,8 @@ use PBot::Imports;
 | 
			
		||||
# These are set by the /misc/update_version script
 | 
			
		||||
use constant {
 | 
			
		||||
    BUILD_NAME     => "PBot",
 | 
			
		||||
    BUILD_REVISION => 4676,
 | 
			
		||||
    BUILD_DATE     => "2023-05-14",
 | 
			
		||||
    BUILD_REVISION => 4678,
 | 
			
		||||
    BUILD_DATE     => "2023-05-21",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
sub initialize {}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user