From cce133e56c4827b78e59178f1b4742dfdf4c4d27 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 28 Jan 2024 13:39:03 +0100 Subject: [PATCH] printing username in server --- src/chat/misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chat/misc.c b/src/chat/misc.c index 5b78e7f..32a2040 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -423,6 +423,8 @@ void *why2_communicate_thread(void *arg) { why2_send_socket(WHY2_CHAT_CODE_INVALID_USERNAME, WHY2_CHAT_SERVER_USERNAME, connection); //TELL THE USER HE IS DUMB AS FUCK } + + printf("User set username.\t%d\t%s\n", connection, decoded_buffer); } }