]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .inspircd.inc
Part 1 of my plan to take over the world. pay it no attention.
[user/henk/code/inspircd.git] / .inspircd.inc
index e2c8c787c4b2e7bf74f5b769adb3c8a75ffd3c0c..71eb3a75430be6a377555347b0b40b59fdb855dc 100644 (file)
@@ -231,7 +231,8 @@ sub getpidfile {
   my $tmp = join("",@lines);
 
   # Does this file have a pid?
-  if (($tmp =~ /<pid file=\"(\S+)\">/i) && ($tmp !~ /^#/)) {
+  if (($tmp =~ /<pid file=\"(\S+)\">/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/\<include file=\"(.+?)\"\>//i)
+    if (($tmp =~ s/\<include file=\"(.+?)\"\>//i) && ($tmp !~ /^#/))
     {
       # Decend into that file, and check for PIDs.. (that sounds like an STD ;/)
       getpidfile($1);