sending WHY2_CHAT_CODE_ACCEPT_MESSAGES earlier

This commit is contained in:
Václav Šmejkal 2024-02-21 11:24:56 +01:00
parent 3955561b82
commit 06af6a801c
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -367,6 +367,8 @@ void *why2_communicate_thread(void *arg)
printf("User connected.\t\t%d\n", connection);
send_socket_deallocate(WHY2_CHAT_CODE_ACCEPT_MESSAGES, why2_chat_server_config("server_username"), connection); //TELL USER HE CAN START COMMUNICATING
//GET USERNAME
char *config_username = why2_chat_server_config("user_pick_username");
@ -472,8 +474,6 @@ void *why2_communicate_thread(void *arg)
send_to_all(raw); //FUCKING SEND TO ALL YOU TWAT
why2_send_socket(WHY2_CHAT_CODE_ACCEPT_MESSAGES, WHY2_CHAT_SERVER_USERNAME, connection); //TELL USER HE CAN START COMMUNICATING
why2_deallocate(raw);
why2_deallocate(connection_message);
why2_deallocate(username);