summaryrefslogtreecommitdiff
path: root/src/login/lclif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-10-30 02:24:20 +0100
committerGitHub <noreply@github.com>2017-10-30 02:24:20 +0100
commit703a57698fc04d4cba818041b67ffbb028f56e2b (patch)
tree01941788ac53f988b2481d59c7ca9d77790a2603 /src/login/lclif.c
parent7f74da4a69482ce09409744612b69e071ebc0ced (diff)
parentebff7968504ee090961390820ce74458d7b0f956 (diff)
downloadhercules-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/lclif.c')
-rw-r--r--src/login/lclif.c2
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;