summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 03:36:09 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 03:36:09 +0300
commit5bcee0f52e61a2a2246069a8e23e69d7f073ffc7 (patch)
tree2e94301ef5d9868fa5811955aba9aec1c681f2ad
parent791cdc602845ce43e0e1730f2620fba6f466279b (diff)
downloadevol-hercules-5bcee0f52e61a2a2246069a8e23e69d7f073ffc7.tar.gz
evol-hercules-5bcee0f52e61a2a2246069a8e23e69d7f073ffc7.tar.bz2
evol-hercules-5bcee0f52e61a2a2246069a8e23e69d7f073ffc7.tar.xz
evol-hercules-5bcee0f52e61a2a2246069a8e23e69d7f073ffc7.zip
Add support for exit codes for git pull and rebuilding code.
-rw-r--r--src/echar/char.c1
-rw-r--r--src/elogin/parse.c1
-rw-r--r--src/emap/atcommand.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/echar/char.c b/src/echar/char.c
index 785c2f2..34e904f 100644
--- a/src/echar/char.c
+++ b/src/echar/char.c
@@ -334,6 +334,7 @@ void echar_parse_map_serverexit(int mapFd)
case 105: // build all
case 106: // rebuild all
case 107: // git pull and build all
+ case 108: // git pull and rebuild all
echat_send_login_serverexit(code);
HSleep(1);
core->shutdown_callback();
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 40f983f..d142f34 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -226,6 +226,7 @@ void elogin_parse_serverexit(int fd)
case 105: // build all
case 106: // rebuild all
case 107: // git pull and build all
+ case 108: // git pull and rebuild all
core->shutdown_callback();
break;
case 102: // restart char and map server
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index 2c7bc87..a6ce11c 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.c
@@ -150,6 +150,7 @@ ACMD1(mapExit)
// 105 - build all
// 106 - rebuild all
// 107 - git pull and build all
+// 108 - git pull and rebuild all
ACMD1(serverExit)
{
int code = 0;