X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.inspircd.inc;h=71eb3a75430be6a377555347b0b40b59fdb855dc;hb=fd8932217922ea291f4102dffbfd66de4d5e9827;hp=e2c8c787c4b2e7bf74f5b769adb3c8a75ffd3c0c;hpb=962893493366e08f7459ccd89668b83cb928ff88;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/.inspircd.inc b/.inspircd.inc index e2c8c787c..71eb3a754 100644 --- a/.inspircd.inc +++ b/.inspircd.inc @@ -231,7 +231,8 @@ sub getpidfile { my $tmp = join("",@lines); # Does this file have a pid? - if (($tmp =~ //i) && ($tmp !~ /^#/)) { + if (($tmp =~ //i) && ($tmp !~ /^#/)) + { # Set the PID file and return. $pidfile = $1; return; @@ -240,7 +241,7 @@ sub getpidfile { # If we get here, NO PID FILE! -- Check for includes (Seeing as we will eventually return, # The while (1) is safe.) while (1) { - if ($tmp =~ s/\//i) + if (($tmp =~ s/\//i) && ($tmp !~ /^#/)) { # Decend into that file, and check for PIDs.. (that sounds like an STD ;/) getpidfile($1);