diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-10 16:39:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-10 16:39:53 +0300 |
commit | 409da45527ce8b6ba82523d4f3ce1abaf4650906 (patch) | |
tree | 4f193e68b6a95681ef816f933135e625120e833c | |
parent | 4ed85f7faf02a42f943d13318a0f006184c0434a (diff) | |
download | plugin-409da45527ce8b6ba82523d4f3ce1abaf4650906.tar.gz plugin-409da45527ce8b6ba82523d4f3ce1abaf4650906.tar.bz2 plugin-409da45527ce8b6ba82523d4f3ce1abaf4650906.tar.xz plugin-409da45527ce8b6ba82523d4f3ce1abaf4650906.zip |
Add support for exit codes for git pull and building plugin code.
-rw-r--r-- | src/echar/char.c | 1 | ||||
-rw-r--r-- | src/elogin/parse.c | 1 | ||||
-rw-r--r-- | src/emap/atcommand.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index ec517ec..1605640 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -336,6 +336,7 @@ void echar_parse_map_serverexit(int mapFd) case 107: // git pull and build all case 108: // git pull and rebuild all case 109: // build plugin + case 110: // git pull and build plugin echat_send_login_serverexit(code); HSleep(1); core->shutdown_callback(); diff --git a/src/elogin/parse.c b/src/elogin/parse.c index ac8001b..16d1c7e 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -228,6 +228,7 @@ void elogin_parse_serverexit(int fd) case 107: // git pull and build all case 108: // git pull and rebuild all case 109: // build plugin + case 110: // git pull and build plugin core->shutdown_callback(); break; case 102: // restart char and map server diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c index 4027acd..f10a012 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -152,6 +152,7 @@ ACMD1(mapExit) // 107 - git pull and build all // 108 - git pull and rebuild all // 109 - build plugin +// 110 - git pull and build plugin ACMD1(serverExit) { int code = 0; |