mirror of
https://github.com/pragma-/pbot.git
synced 2025-07-22 13:27:33 +02:00
applets/trans.pl: restrict allowed options
This commit is contained in:
parent
cff8d5fe70
commit
66ce01a0c3
4
applets/trans.pl
vendored
4
applets/trans.pl
vendored
@ -14,10 +14,10 @@ my $args = quotemeta "@ARGV";
|
||||
$args =~ s/\\([ :-])/$1/g;
|
||||
$args =~ s/^\s+|\s+$//g;
|
||||
|
||||
my $opts = '-j -no-ansi -no-autocorrect';
|
||||
my $opts = '-j -no-ansi -no-autocorrect -no-browser -no-pager -no-play';
|
||||
$opts .= ' -b' unless $args =~ /^-/;
|
||||
|
||||
if ($args =~ m/-pager/) {
|
||||
if ($args =~ m/-(pager|browser|player|download|p|I|interactive|shell|emacs|E|x|4|6|ipv|inet|u|U|upgrade|user)/) {
|
||||
print "I don't think so.\n";
|
||||
exit;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4873,
|
||||
BUILD_REVISION => 4874,
|
||||
BUILD_DATE => "2025-07-19",
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user