sending WHY2_CHAT_CODE_ACCEPT_MESSAGES earlier
This commit is contained in:
parent
3955561b82
commit
06af6a801c
@ -367,6 +367,8 @@ void *why2_communicate_thread(void *arg)
|
|||||||
|
|
||||||
printf("User connected.\t\t%d\n", connection);
|
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
|
//GET USERNAME
|
||||||
char *config_username = why2_chat_server_config("user_pick_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
|
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(raw);
|
||||||
why2_deallocate(connection_message);
|
why2_deallocate(connection_message);
|
||||||
why2_deallocate(username);
|
why2_deallocate(username);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user