1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 14:56:35 +01:00

bug and format fixes

This commit is contained in:
Jfreegman
2013-09-27 19:55:11 -04:00
parent 49a10e5a40
commit 38f6f446c4
2 changed files with 13 additions and 10 deletions

View File

@@ -222,10 +222,8 @@ static void do_tox(Tox *m, ToxWindow *prompt)
if (!dht_on && !tox_isconnected(m) && !(conn_try++ % 100)) {
if (!conn_err) {
conn_err = init_connection(m);
wprintw(prompt->window, "\nEstablishing connection...\n");
if (conn_err)
wprintw(prompt->window, "Establishing connection...\n");
if (conn_err = init_connection(m))
wprintw(prompt->window, "\nAuto-connect failed with error code %d\n", conn_err);
}
} else if (!dht_on && tox_isconnected(m)) {