Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 929b4e0407a33aa0e35dc236e01153c6de2ac06f)
+++ client/Client/main.cpp	(revision bbebe9cf2664fd1a1a6484f687fc45240a87fb50)
@@ -1120,9 +1120,7 @@
 {
    string msg = txtChat->getStr();
-
    txtChat->clear();
 
    msgTo.type = MSG_TYPE_CHAT;
-
    strcpy(msgTo.buffer, msg.c_str());
 
@@ -1138,4 +1136,12 @@
 {
    cout << "Joining game" << endl;
+
+   string msg = txtJoinGame->getStr();
+   txtJoinGame->clear();
+
+   msgTo.type = MSG_TYPE_JOIN_GAME;
+   strcpy(msgTo.buffer, msg.c_str());
+
+   msgProcessor.sendMessage(&msgTo, sock, &server, &outputLog);
 }
 
@@ -1143,3 +1149,11 @@
 {
    cout << "Creating game" << endl;
-}
+
+   string msg = txtCreateGame->getStr();
+   txtCreateGame->clear();
+
+   msgTo.type = MSG_TYPE_CREATE_GAME;
+   strcpy(msgTo.buffer, msg.c_str());
+
+   msgProcessor.sendMessage(&msgTo, sock, &server, &outputLog);
+}
