summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 02b27da..7c3f3b9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;