3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-08-17 18:17:21 +02:00

applets/trans.pl: disallow -pager

This commit is contained in:
Pragmatic Software 2025-07-19 08:54:38 -07:00
parent 4525cb95d1
commit 8752349210
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 7 additions and 2 deletions

5
applets/trans.pl vendored
View File

@ -17,5 +17,10 @@ $args =~ s/^\s+|\s+$//g;
my $opts = '-j -no-ansi -no-autocorrect';
$opts .= ' -b' unless $args =~ /^-/;
if ($args =~ m/-pager/) {
print "I don't think so.\n";
exit;
}
my $result = `trans $opts $args`;
print "$result\n";

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4871,
BUILD_DATE => "2025-07-08",
BUILD_REVISION => 4872,
BUILD_DATE => "2025-07-19",
};
sub initialize {}