diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-04 20:47:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-04 20:47:58 +0300 |
commit | 14d9db5229186a56ce6f270f0b3e5aee1a92a650 (patch) | |
tree | a72934a05abfbbe74412f3b16826c2f60b3a20f0 /src/char/config.c | |
parent | b83f07275fb87c61f4664a384f3de2a4938ab76c (diff) | |
download | plugin-14d9db5229186a56ce6f270f0b3e5aee1a92a650.tar.gz plugin-14d9db5229186a56ce6f270f0b3e5aee1a92a650.tar.bz2 plugin-14d9db5229186a56ce6f270f0b3e5aee1a92a650.tar.xz plugin-14d9db5229186a56ce6f270f0b3e5aee1a92a650.zip |
char: read max char class from char server config.
Diffstat (limited to 'src/char/config.c')
-rw-r--r-- | src/char/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char/config.c b/src/char/config.c index 5eefbc1..cddc6b6 100644 --- a/src/char/config.c +++ b/src/char/config.c @@ -14,6 +14,7 @@ #include "char/config.h" char *inter_server_ip = NULL; +int max_char_class = 0; void config_inter_server_ip(const char *val) { @@ -28,6 +29,11 @@ void config_inter_server_ip(const char *val) inter_server_ip = aStrdup(buf); } +void config_max_char_class(const char *val) +{ + max_char_class = atoi(val); +} + void config_final(void) { if (inter_server_ip) |