Fixed non-working failcount sending code.

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck) 2012-03-29 19:01:53 +02:00
parent b4fbb99ec4
commit f1a0c6dde8

View File

@ -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 */