diff options
author | Haru <haru@dotalux.com> | 2017-10-30 02:24:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 02:24:20 +0100 |
commit | 703a57698fc04d4cba818041b67ffbb028f56e2b (patch) | |
tree | 01941788ac53f988b2481d59c7ca9d77790a2603 /src/login/login.h | |
parent | 7f74da4a69482ce09409744612b69e071ebc0ced (diff) | |
parent | ebff7968504ee090961390820ce74458d7b0f956 (diff) | |
download | hercules-703a57698fc04d4cba818041b67ffbb028f56e2b.tar.gz hercules-703a57698fc04d4cba818041b67ffbb028f56e2b.tar.bz2 hercules-703a57698fc04d4cba818041b67ffbb028f56e2b.tar.xz hercules-703a57698fc04d4cba818041b67ffbb028f56e2b.zip |
Merge pull request #1891 from 4144/listcolor
Add ability to show char servers list with colors based on players count.
Diffstat (limited to 'src/login/login.h')
-rw-r--r-- | src/login/login.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/login/login.h b/src/login/login.h index 5632e6529..d5c9972c0 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -32,6 +32,8 @@ struct mmo_account; struct AccountDB; +struct config_t; +struct config_setting_t; enum E_LOGINSERVER_ST { @@ -119,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 @@ -209,6 +216,19 @@ struct login_interface { void (*parse_request_connection) (int fd, struct login_session_data* sd, const char *ip, uint32 ipl); void (*config_set_defaults) (void); bool (*config_read) (const char *filename, bool included); + bool (*config_read_inter) (const char *filename, struct config_t *config, bool imported); + bool (*config_read_console) (const char *filename, struct config_t *config, bool imported); + bool (*config_read_log) (const char *filename, struct config_t *config, bool imported); + bool (*config_read_account) (const char *filename, struct config_t *config, bool imported); + 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 }; |