diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 94e53918..0fc4a67f 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 722, + BUILD_REVISION => 723, BUILD_DATE => "2014-07-09", }; diff --git a/modules/c2english/CGrammar.pm b/modules/c2english/CGrammar.pm index 05f8b600..6527bfb7 100644 --- a/modules/c2english/CGrammar.pm +++ b/modules/c2english/CGrammar.pm @@ -623,10 +623,11 @@ rel_add_mul_shift_expression: { $return = $item{cast_expression}; } | { - if($arg{context} =~ /expression/) { + my $expression = join('', @{$item[1]}); + if($arg{context} =~ /expression/ and $expression =~ / /) { $return = 'the result of the expression '; } - $return .= join('' , @{$item[1]}); + $return .= $expression; } closure: