mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-22 10:04:36 +01:00
Fix wrong quote-type for #include derp
This commit is contained in:
parent
c91a8e5c3d
commit
32385ec691
@ -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",
|
||||
};
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user