mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-14 15:07:22 +02:00
applets/trans.pl: disallow -pager
This commit is contained in:
parent
4525cb95d1
commit
8752349210
5
applets/trans.pl
vendored
5
applets/trans.pl
vendored
@ -17,5 +17,10 @@ $args =~ s/^\s+|\s+$//g;
|
|||||||
my $opts = '-j -no-ansi -no-autocorrect';
|
my $opts = '-j -no-ansi -no-autocorrect';
|
||||||
$opts .= ' -b' unless $args =~ /^-/;
|
$opts .= ' -b' unless $args =~ /^-/;
|
||||||
|
|
||||||
|
if ($args =~ m/-pager/) {
|
||||||
|
print "I don't think so.\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
my $result = `trans $opts $args`;
|
my $result = `trans $opts $args`;
|
||||||
print "$result\n";
|
print "$result\n";
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4871,
|
BUILD_REVISION => 4872,
|
||||||
BUILD_DATE => "2025-07-08",
|
BUILD_DATE => "2025-07-19",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user