summaryrefslogtreecommitdiff
path: root/testing/toxic/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r--testing/toxic/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index 8ef44012..40ff5d09 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -140,7 +140,13 @@ static void init_tox()
140 m_callback_namechange(m, on_nickchange, NULL); 140 m_callback_namechange(m, on_nickchange, NULL);
141 m_callback_statusmessage(m, on_statuschange, NULL); 141 m_callback_statusmessage(m, on_statuschange, NULL);
142 m_callback_action(m, on_action, NULL); 142 m_callback_action(m, on_action, NULL);
143 setname(m, (uint8_t*) "n00b", strlen("n00b")+1); 143#ifdef __linux__
144 setname(m, (uint8_t*) "Cool guy", sizeof("Cool guy"));
145#elif WIN32
146 setname(m, (uint8_t*) "I should install GNU/Linux", sizeof("I should install GNU/Linux"));
147#else
148 setname(m, (uint8_t*) "Hipster", sizeof("Hipster"));
149#endif
144} 150}
145 151
146#define MAXLINE 90 /* Approx max number of chars in a sever line (IP + port + key) */ 152#define MAXLINE 90 /* Approx max number of chars in a sever line (IP + port + key) */