aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-10-07 21:30:39 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-10-07 21:30:39 +1300
commita52d8fb14d6f120dbc49fb2526c70d12b2f57407 (patch)
tree0144338a7c80d3d0c43bb82d1a6cb94cc11ec11a
parent4a5a647db76701d35f10c99b1d61bc1e6e06cb91 (diff)
downloadidalius-a52d8fb14d6f120dbc49fb2526c70d12b2f57407.tar.xz
Natural: Disable regex injection
-rw-r--r--Plugin/Natural.pm2
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);