summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-06 21:04:00 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-06 21:04:15 +0100
commit1624b37bf4ce632a486d6729dc90724241417868 (patch)
tree4596c7bbabd65dc95fe9b781f044d2dd035e534e /server
parent121387bfccc0ca2e35d39a8c1c92471f24e4848a (diff)
Changed format of Message::Login and Message::LoginResponse to accomodate reconnection.
Diffstat (limited to 'server')
-rw-r--r--server/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/client.cpp b/server/client.cpp
index 329da82..07a59f4 100644
--- a/server/client.cpp
+++ b/server/client.cpp
@@ -39,12 +39,12 @@ void Client::handle_login(Message::p msg, boost::function<void (Client::p)> logi
// Check if nick is invalid.
if(login_msg->nick.size() == 0) {
- connection->send(make_shared<Message::LoginResponse>(false));
+ connection->send(make_shared<Message::LoginResponse>(Message::LoginResponse::Invalid));
connection->recv(boost::bind(&Client::handle_login, shared_from_this(), _1, login_callback));
return;
}
- connection->send(make_shared<Message::LoginResponse>(true));
+ connection->send(make_shared<Message::LoginResponse>(Message::LoginResponse::Lobby));
nick_ = login_msg->nick;