diff --git a/src/chat/misc.c b/src/chat/misc.c
index 69899ac..38f0e0c 100644
--- a/src/chat/misc.c
+++ b/src/chat/misc.c
@@ -28,6 +28,7 @@ along with this program. If not, see .
#include
+#include
#include
#include
#include
@@ -298,6 +299,9 @@ void *why2_communicate_thread(void *arg)
why2_list_push(&connection_list, &node, sizeof(node)); //ADD TO LIST
printf("User connected.\t\t%d\n", connection);
+ //GET USERNAME //TODO: Use config
+ why2_send_socket(WHY2_CHAT_CODE_PICK_USERNAME, "server", connection);
+
void *buffer;
char *received = NULL;
char *raw = why2_strdup("");