diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -41,8 +41,16 @@ int main (int argc, char * argv[]) { i.attached_function->type = DC_API_MESSAGE; i.attached_function->function = dc_print_message; dc_api_i(i); - while (!dc_interrupted) + while (!dc_interrupted) { i = dc_api_o(i); + switch (i.type) { + case DC_API_USER: + fprintf(stderr, "DC_API_USER: %s#%04d %llu\n", i.user->username, i.user->discriminator, i.user->id); + break; + default: + break; + } + } /* dc_ui(argc, argv); */ dc_program_free(p, DC_UNSET); return 0; |