From fa8560d51a5735a843abe79bc5382e4c919e25b1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 31 Jan 2025 13:38:21 +0100 Subject: [PATCH] sending WHY2_CHAT_CODE_PICK_USERNAME as a code --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index e2323ff..1e3175c 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -540,7 +540,7 @@ void *why2_communicate_thread(void *arg) { if (config_username == NULL) fprintf(stderr, "Your config doesn't contain 'user_pick_username'. Please update your configuration.\n"); - send_socket_deallocate(WHY2_CHAT_CODE_PICK_USERNAME, why2_chat_server_config("server_username"), connection); //ASK USER FOR USERNAME + send_socket_code_deallocate(NULL, why2_chat_server_config("server_username"), connection, WHY2_CHAT_CODE_PICK_USERNAME); //ASK USER FOR USERNAME while (invalid_username) {