From ffa809b3797e1e8fba4c1c495c4990cae44477d7 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 16 Jul 2013 19:45:20 -0400 Subject: ncurses test now tells you when you connect to the DHT. --- testing/nTox.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testing') diff --git a/testing/nTox.c b/testing/nTox.c index acc0be89..d3f6e6a8 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -169,6 +169,7 @@ int main(int argc, char *argv[]) exit(0); } int c; + int on = 0; initMessenger(); m_callback_friendrequest(print_request); m_callback_friendmessage(print_message); @@ -219,6 +220,14 @@ int main(int argc, char *argv[]) break; } } + if(on == 0) + { + if(DHT_isconnected()) + { + new_lines("You are now connected to the DHT."); + on = 1; + } + } doMessenger(); c_sleep(1); do_refresh(); -- cgit v1.2.3