mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 15:34:05 +01:00
CGrammar: Change "is true" to "is nonzero"
This commit is contained in:
parent
9abf8b6e44
commit
95949153e0
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 673,
|
BUILD_REVISION => 674,
|
||||||
BUILD_DATE => "2014-06-23",
|
BUILD_DATE => "2014-06-23",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ sub istrue {
|
|||||||
foreach my $part (@parts) {
|
foreach my $part (@parts) {
|
||||||
$result .= $and;
|
$result .= $and;
|
||||||
if($part !~ /(greater|less|equal|false$)/) {
|
if($part !~ /(greater|less|equal|false$)/) {
|
||||||
$result .= "$part is true";
|
$result .= "$part is nonzero";
|
||||||
} else {
|
} else {
|
||||||
$result .= $part;
|
$result .= $part;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user