diff options
| author | 2016-07-07 07:38:25 -0700 | |
|---|---|---|
| committer | 2016-07-07 07:38:25 -0700 | |
| commit | 99538bbafe979b033e0c572b8d8f52c20cb08e9b (patch) | |
| tree | 0041c06e1eb1fc78863547fbb6b07d156af9004e /lib | |
| parent | c0b51ca8d736f470f8e17cefcb15c744354365bc (diff) | |
Prevent public regex access in ;help
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ASM/Commander.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm index 7037755..e91dc44 100644 --- a/lib/ASM/Commander.pm +++ b/lib/ASM/Commander.pm @@ -446,7 +446,7 @@ sub cmd_help { sub cmd_help2 { my ($conn, $event) = @_; - my @cmds = grep { $_ =~ /$+{cmd}/} (keys %{$cmdtbl}); + my @cmds = grep { $_ =~ /\Q$+{cmd}/} (keys %{$cmdtbl}); if ((scalar @cmds) > 2) { $conn->privmsg($event->replyto, "Please refer to http://antispammeta.net and irc.freenode.net #antispammeta"); } else { |
