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/lclif.c | |
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/lclif.c')
-rw-r--r-- | src/login/lclif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/lclif.c b/src/login/lclif.c index f32538610..47b2526c4 100644 --- a/src/login/lclif.c +++ b/src/login/lclif.c @@ -284,7 +284,7 @@ bool lclif_send_server_list(struct login_session_data *sd) packet->server_list[n].ip = htonl((subnet_char_ip) ? subnet_char_ip : server[i].ip); packet->server_list[n].port = sockt->ntows(htons(server[i].port)); // [!] LE byte order here [!] safestrncpy(packet->server_list[n].name, server[i].name, 20); - packet->server_list[n].usercount = server[i].users; + packet->server_list[n].usercount = login->convert_users_to_colors(server[i].users); if (server[i].type == CST_PAYING && sd->expiration_time > time(NULL)) packet->server_list[n].property = CST_NORMAL; |