diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-29 00:16:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-29 02:10:10 +0300 |
commit | ebff7968504ee090961390820ce74458d7b0f956 (patch) | |
tree | 9e6268b61e9e5e86112632ade1dc2a6da27ee8f0 /src/login/login.h | |
parent | 0e16e4d19a3ffc16d34a39c3ded3a9b20c1298b8 (diff) | |
download | hercules-ebff7968504ee090961390820ce74458d7b0f956.tar.gz hercules-ebff7968504ee090961390820ce74458d7b0f956.tar.bz2 hercules-ebff7968504ee090961390820ce74458d7b0f956.tar.xz hercules-ebff7968504ee090961390820ce74458d7b0f956.zip |
Add configurable way to show char servers with color in list in client.
Options configurable in login-server.conf in users_count section.
Diffstat (limited to 'src/login/login.h')
-rw-r--r-- | src/login/login.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/login/login.h b/src/login/login.h index 38d14d797..d5c9972c0 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -121,6 +121,11 @@ struct Login_Config { bool use_dnsbl; ///< dns blacklist blocking ? VECTOR_DECL(char *) dnsbl_servers; ///< dnsbl servers + bool send_user_count_description; + uint32 users_low; + uint32 users_medium; + uint32 users_high; + bool client_hash_check; ///< flags for checking client md5 // TODO: VECTOR candidate struct client_hash_node *client_hash_nodes; ///< linked list containg md5 hash for each gm group @@ -218,10 +223,12 @@ struct login_interface { bool (*config_read_permission) (const char *filename, struct config_t *config, bool imported); bool (*config_read_permission_hash) (const char *filename, struct config_t *config, bool imported); bool (*config_read_permission_blacklist) (const char *filename, struct config_t *config, bool imported); + bool (*config_read_users) (const char *filename, struct config_t *config, bool imported); void (*clear_dnsbl_servers) (void); void (*config_set_dnsbl_servers) (struct config_setting_t *setting); void (*clear_client_hash_nodes) (void); void (*config_set_md5hash) (struct config_setting_t *setting); + uint16 (*convert_users_to_colors) (uint16 users); char *LOGIN_CONF_NAME; char *NET_CONF_NAME; ///< Network configuration filename }; |