3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

No longer discard "0" valued arguments from find_factoid_with_optional_args

This commit is contained in:
Pragmatic Software 2017-08-30 17:51:42 -07:00
parent bbb52f99e9
commit 08b28cf6c2

View File

@ -177,7 +177,7 @@ sub find_factoid_with_optional_channel {
# not a channel or global, so must be a keyword
my $keyword = $from_chan;
$from_chan = $from;
$remaining_args = $from_trigger . ($remaining_args ? " $remaining_args" : "");
$remaining_args = $from_trigger . (length $remaining_args ? " $remaining_args" : "");
$from_trigger = $keyword;
}
}