diff options
| author | David Phillips <david@yeah.nah.nz> | 2018-10-07 21:30:39 +1300 | 
|---|---|---|
| committer | David Phillips <david@yeah.nah.nz> | 2018-10-07 21:30:39 +1300 | 
| commit | a52d8fb14d6f120dbc49fb2526c70d12b2f57407 (patch) | |
| tree | 0144338a7c80d3d0c43bb82d1a6cb94cc11ec11a /Plugin | |
| parent | 4a5a647db76701d35f10c99b1d61bc1e6e06cb91 (diff) | |
| download | idalius-a52d8fb14d6f120dbc49fb2526c70d12b2f57407.tar.xz | |
Natural: Disable regex injection
Diffstat (limited to 'Plugin')
| -rw-r--r-- | Plugin/Natural.pm | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/Natural.pm b/Plugin/Natural.pm index 78ff916..d347dcc 100644 --- a/Plugin/Natural.pm +++ b/Plugin/Natural.pm @@ -60,7 +60,7 @@ sub on_message {  		$where = $where->[0];  	} -	return unless $what =~ /\b$root_config->{current_nick}\b/; +	return unless $what =~ /\b\Q$root_config->{current_nick}\E\b/;  	return unless mention_odds();  	my $response = choose_response($what, $nick);  | 
