]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Merge pull request #1157 from SaberUK/insp20+fix-cron-restart
authorAttila Molnar <attilamolnar@hush.com>
Tue, 22 Mar 2016 13:40:01 +0000 (14:40 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 22 Mar 2016 13:40:01 +0000 (14:40 +0100)
[2.0] Fix 'cron' and 'restart' in the helper not forwarding arguments.

make/template/inspircd

index 7cd83a8e15fdd0615e020592e102277f5117a9f6..b43ad60c9ecbb67981cf36258dc765964c36b860 100644 (file)
@@ -135,7 +135,7 @@ sub cmd_rehash()
 
 sub cmd_cron()
 {
-       if (getstatus() == 0) { goto &cmd_start(); }
+       if (getstatus() == 0) { goto &cmd_start(@_); }
        exit();
 }
 
@@ -149,7 +149,7 @@ sub cmd_restart(@)
 {
        cmd_stop();
        unlink($pidfile) if (-e $pidfile);
-       goto &cmd_start;
+       goto &cmd_start(@_);
 }
 
 sub hid_cheese_sandwich()