3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Fix wrong quote-type for #include derp

This commit is contained in:
Pragmatic Software 2013-10-12 16:35:23 +00:00
parent c91a8e5c3d
commit 32385ec691
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 446,
BUILD_REVISION => 447,
BUILD_DATE => "2013-10-12",
};

View File

@ -714,7 +714,7 @@ while($code =~ m/(.)/msg) {
} elsif($ch eq '#' and not $cpp and not $escaped and not $single_quote and not $double_quote) {
$cpp = 1;
if($code =~ m/include\s*[<']([^>']*)[>']/msg) {
if($code =~ m/include\s*[<"]([^>"]*)[>"]/msg) {
my $match = $1;
$pos = pos $code;
substr ($code, $pos, 0) = "\n";