]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .inspircd.inc
now using OnUserPreMessage exempt_list instead of OnPreCommand dup code for blocking...
[user/henk/code/inspircd.git] / .inspircd.inc
index 5ac7e84ecec616eb22641e3798c30fcb6858c479..d1ea383a33fb24b4cdc17800bd09b0e4ee20b1a7 100644 (file)
@@ -88,6 +88,8 @@ sub start {
         # Check to see its not 'running' already.
         if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
         # If we are still alive here.. Try starting the IRCd..
+       print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
         system("$binpath/$executable");
         return 1;
 }
@@ -95,7 +97,9 @@ sub start {
 sub debug {
        # Check to see its not 'running' already.
        if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
-               
+       
+       print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+       
        # Check we have gdb
        checkgdb();
                
@@ -108,6 +112,8 @@ sub screendebug
        # Check to see its not 'running' already.
        if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
        
+       print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
        #Check we have gdb
        checkgdb();
        checkscreen();
@@ -123,6 +129,8 @@ sub valdebug
        # Check to see its not 'running' already.
        if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
 
+       print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
        # Check we have valgrind and gdb
        checkvalgrind();
        checkgdb();
@@ -138,6 +146,8 @@ sub screenvaldebug
        # Check to see its not 'running' already.
        if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
        
+       print "$binpath/$executable doesn't exist\n" and return 0 unless(-e "$binpath/$executable");
+
        #Check we have gdb
        checkvalgrind();
        checkgdb();
@@ -226,7 +236,7 @@ sub getpidfile {
       }
     } else {
       # End of includes / No includes found.
-      return;
+      return $confpath . "inspircd.pid";
     }
   }
 }