summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/nTox.c9
1 files changed, 9 insertions, 0 deletions
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[])
169 exit(0); 169 exit(0);
170 } 170 }
171 int c; 171 int c;
172 int on = 0;
172 initMessenger(); 173 initMessenger();
173 m_callback_friendrequest(print_request); 174 m_callback_friendrequest(print_request);
174 m_callback_friendmessage(print_message); 175 m_callback_friendmessage(print_message);
@@ -219,6 +220,14 @@ int main(int argc, char *argv[])
219 break; 220 break;
220 } 221 }
221 } 222 }
223 if(on == 0)
224 {
225 if(DHT_isconnected())
226 {
227 new_lines("You are now connected to the DHT.");
228 on = 1;
229 }
230 }
222 doMessenger(); 231 doMessenger();
223 c_sleep(1); 232 c_sleep(1);
224 do_refresh(); 233 do_refresh();