mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-17 08:36:34 +01:00
core API update
This commit is contained in:
10
src/toxic.c
10
src/toxic.c
@@ -314,15 +314,7 @@ static Tox *init_tox(void)
|
||||
tox_callback_file_data(m, on_file_data, NULL);
|
||||
tox_callback_read_receipt(m, on_read_receipt, NULL);
|
||||
|
||||
#ifdef __linux__
|
||||
tox_set_name(m, (uint8_t *) "Cool dude", strlen("Cool dude"));
|
||||
#elif defined(__FreeBSD__)
|
||||
tox_set_name(m, (uint8_t *) "Nerd", strlen("Nerd"));
|
||||
#elif defined(__APPLE__)
|
||||
tox_set_name(m, (uint8_t *) "Hipster", strlen("Hipster")); /* This used to users of other Unixes are hipsters */
|
||||
#else
|
||||
tox_set_name(m, (uint8_t *) "Registered Minix user #4", strlen("Registered Minix user #4"));
|
||||
#endif
|
||||
tox_set_name(m, (uint8_t *) "Toxic User", strlen("Toxic User"));
|
||||
|
||||
return m;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user