Fixed non-working failcount sending code.
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
b4fbb99ec4
commit
f1a0c6dde8
@ -209,7 +209,7 @@ wmud_client_callback(GSocket *client_socket, GIOCondition condition, wmudClient
|
|||||||
client->authenticated = TRUE;
|
client->authenticated = TRUE;
|
||||||
if (client->player->fail_count > 0)
|
if (client->player->fail_count > 0)
|
||||||
{
|
{
|
||||||
wmud_client_send("There %s %d failed login attempt%s with your account since your last visit\r\n", (client->player->fail_count == 1) ? "was" : "were", client->player->fail_count, (client->player->fail_count > 1) ? "s" : "");
|
wmud_client_send(client, "There %s %d failed login attempt%s with your account since your last visit\r\n", (client->player->fail_count == 1) ? "was" : "were", client->player->fail_count, (client->player->fail_count > 1) ? "s" : "");
|
||||||
}
|
}
|
||||||
client->state = WMUD_CLIENT_STATE_MENU;
|
client->state = WMUD_CLIENT_STATE_MENU;
|
||||||
/* TODO: send MOTD */
|
/* TODO: send MOTD */
|
||||||
|
Loading…
Reference in New Issue
Block a user