Handles failed logins correctly

This commit is contained in:
James Booth
2012-02-17 00:42:41 +00:00
parent 3be10300f4
commit 03b90cf5ab
9 changed files with 86 additions and 14 deletions

5
main.c
View File

@@ -4,10 +4,13 @@
int main(void)
{
int exit_status = LOGIN_FAIL;
log_init();
gui_init();
profanity_start();
while (exit_status == LOGIN_FAIL) {
exit_status = profanity_start();
}
gui_close();
log_close();