From 581ff22b9bad7567a27980df31636f0c75ba5fc2 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 9 May 2014 06:20:52 +0200 Subject: Added support to return a different exit status to the OS. - This can be easily used by plugins. - See an example at http://github.com/HerculesWS/StaffPlugins/Haru/script_mapquit Signed-off-by: Haru --- src/login/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/login/login.c') diff --git a/src/login/login.c b/src/login/login.c index cb30de2f3..af59fcf38 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1689,8 +1689,7 @@ int login_config_read(const char* cfgName) //-------------------------------------- // Function called at exit of the server //-------------------------------------- -void do_final(void) -{ +int do_final(void) { int i; struct client_hash_node *hn = login_config.client_hash_nodes; @@ -1730,6 +1729,7 @@ void do_final(void) } ShowStatus("Finished.\n"); + return EXIT_SUCCESS; } //------------------------------ -- cgit v1.2.3-60-g2f50