diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-08 02:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-08 02:04:33 +0300 |
commit | 96d877fa2b9bbec546b83cbbc6d16664116e1fb9 (patch) | |
tree | 5b75c3f10217c8515a8e2809892f7526e6efd66f /src/net/tmwa/generalhandler.cpp | |
parent | 29187a2582c04e3ede63f9c58f09dbbe34834a30 (diff) | |
download | manaverse-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.gz manaverse-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.bz2 manaverse-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.xz manaverse-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.zip |
Add checks and fix code style.
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index c6ebc000c..0a9541477 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -143,10 +143,14 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg) break; case 2: if (Client::getState() == STATE_GAME) + { errorMessage = _("Someone else is trying to use this " "account."); + } else + { errorMessage = _("This account is already logged in."); + } break; case 3: errorMessage = _("Speed hack detected."); |