mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 07:24:09 +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
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 673,
|
||||
BUILD_REVISION => 674,
|
||||
BUILD_DATE => "2014-06-23",
|
||||
};
|
||||
|
||||
|
@ -94,7 +94,7 @@ sub istrue {
|
||||
foreach my $part (@parts) {
|
||||
$result .= $and;
|
||||
if($part !~ /(greater|less|equal|false$)/) {
|
||||
$result .= "$part is true";
|
||||
$result .= "$part is nonzero";
|
||||
} else {
|
||||
$result .= $part;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user