X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Futilities.pm;h=fdc4c4c7bdc1932e2bfc2452ab4854fb5e092be2;hb=c3e52465901f11226616a2a93393c3d07295b45d;hp=812e8a1ae8e4ec2ab22c82879e3218672a0f46c4;hpb=caa89fb37c532930805f0b144e3298624ec1adec;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/utilities.pm b/make/utilities.pm index 812e8a1ae..fdc4c4c7b 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -360,17 +360,20 @@ sub translate_functions($$) } if ($line =~ /if\(\!"(\w+)"\)/) { - if (!defined $main::config{$1}) + if (!exists $main::config{$1}) { $line = ""; return ""; } else { - if (($main::config{$1} =~ /y/i) and ($main::config{$1} eq "1")) + if (defined $1) { - $line = ""; - return ""; + if (exists ($main::config{$1}) and (($main::config{$1} =~ /y/i) or ($main::config{$1} eq "1"))) + { + $line = ""; + return ""; + } } }