Index: design/message_spec.txt
===================================================================
--- design/message_spec.txt	(revision 53d41eafe0cfbdcef429ba7c77ada890f9a61694)
+++ design/message_spec.txt	(revision 1a47469cc5fbf8e828006f2e83e45410491c4363)
@@ -12,4 +12,5 @@
 MSG_TYPE_LOGOUT
 Client sends this message to logout. Contains no extra data. The server uses the sender address to determine which player sent it.
+Server broadcasts a reply with the player id if logout was successfull or sends the sender's id and a string with an error message back to the original sender.
 
 MSG_TYPE_CHAT
Index: server/server.cpp
===================================================================
--- server/server.cpp	(revision 53d41eafe0cfbdcef429ba7c77ada890f9a61694)
+++ server/server.cpp	(revision 1a47469cc5fbf8e828006f2e83e45410491c4363)
@@ -754,4 +754,13 @@
             }
 
+            // broadcast to all players before deleting p from the map
+            map<unsigned int, Player*>::iterator it;
+            for (it = mapPlayers.begin(); it != mapPlayers.end(); it++)
+            {
+               cout << "Sent message back to " << it->second->name << endl;
+               if ( msgProcessor.sendMessage(&serverMsg, sock, &(it->second->addr), &outputLog) < 0 )
+                  error("sendMessage");
+            }
+
             if (p->id < unusedPlayerId)
                unusedPlayerId = p->id;
@@ -759,5 +768,4 @@
             delete p;
             strcpy(serverMsg.buffer+4, "You have successfully logged out.");
-            broadcastResponse = true;
          }
 
