diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-10 03:27:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-10 03:27:07 +0300 |
commit | 791cdc602845ce43e0e1730f2620fba6f466279b (patch) | |
tree | f219003442bd6e8ecef242494d132f5de90b1784 /src | |
parent | 356397b74eab36e34a9c16d06a0d6dedc3c2b344 (diff) | |
download | plugin-791cdc602845ce43e0e1730f2620fba6f466279b.tar.gz plugin-791cdc602845ce43e0e1730f2620fba6f466279b.tar.bz2 plugin-791cdc602845ce43e0e1730f2620fba6f466279b.tar.xz plugin-791cdc602845ce43e0e1730f2620fba6f466279b.zip |
Add support for exit codes for git pull and building code.
Diffstat (limited to 'src')
-rw-r--r-- | src/echar/char.c | 3 | ||||
-rw-r--r-- | src/elogin/parse.c | 1 | ||||
-rw-r--r-- | src/emap/atcommand.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index 3c11832..785c2f2 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -330,9 +330,10 @@ void echar_parse_map_serverexit(int mapFd) case 100: // all exit case 101: // all restart case 102: // restart char and map server - case 104: // git pull and all restart + case 104: // git pull and restart all restart case 105: // build all case 106: // rebuild all + case 107: // git pull and build all echat_send_login_serverexit(code); HSleep(1); core->shutdown_callback(); diff --git a/src/elogin/parse.c b/src/elogin/parse.c index 7870fad..40f983f 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -225,6 +225,7 @@ void elogin_parse_serverexit(int fd) case 104: // git pull and all restart case 105: // build all case 106: // rebuild all + case 107: // git pull and build 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 61f35e1..2c7bc87 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -149,6 +149,7 @@ ACMD1(mapExit) // 104 - git pull and restart all servers // 105 - build all // 106 - rebuild all +// 107 - git pull and build all ACMD1(serverExit) { int code = 0; |