summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-03 22:48:05 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-03 22:54:04 +0200
commit9d7352022369a04d957028515d2468297422f5e7 (patch)
treec74dd3f18610f004656944e793a93ed08284a7ba /src/net
parentc18aa95dc6b44337c4ab63d9d892af6eb1f5a679 (diff)
downloadmana-client-9d7352022369a04d957028515d2468297422f5e7.tar.gz
mana-client-9d7352022369a04d957028515d2468297422f5e7.tar.bz2
mana-client-9d7352022369a04d957028515d2468297422f5e7.tar.xz
mana-client-9d7352022369a04d957028515d2468297422f5e7.zip
Added support for the "too fast" login error
So that next time somebody encounters it, it doesn't turn up as "unknown error".
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwserv/loginhandler.cpp3
-rw-r--r--src/net/tmwserv/protocol.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/net/tmwserv/loginhandler.cpp b/src/net/tmwserv/loginhandler.cpp
index 81079a3a..645d574c 100644
--- a/src/net/tmwserv/loginhandler.cpp
+++ b/src/net/tmwserv/loginhandler.cpp
@@ -235,6 +235,9 @@ void LoginHandler::handleLoginResponse(MessageIn &msg)
case LOGIN_SERVER_FULL:
errorMessage = _("Server is full.");
break;
+ case LOGIN_INVALID_TIME:
+ errorMessage = _("Too fast after previous login.");
+ break;
default:
errorMessage = _("Unknown error.");
break;
diff --git a/src/net/tmwserv/protocol.h b/src/net/tmwserv/protocol.h
index 1a42093e..50b20216 100644
--- a/src/net/tmwserv/protocol.h
+++ b/src/net/tmwserv/protocol.h
@@ -230,6 +230,7 @@ enum {
// Login specific return values
enum {
LOGIN_INVALID_VERSION = 0x40, // the user is using an incompatible protocol
+ LOGIN_INVALID_TIME = 0x50, // the user tried logging in too fast
LOGIN_SERVER_FULL // the server is overloaded
};