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:
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';
|
||||
$opts .= ' -b' unless $args =~ /^-/;
|
||||
|
||||
if ($args =~ m/-pager/) {
|
||||
print "I don't think so.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
my $result = `trans $opts $args`;
|
||||
print "$result\n";
|
||||
|
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user