summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/login.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index 758bd9bc..56373011 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -245,6 +245,7 @@ void server_login(const std::string& user, const std::string& pass) {
RFIFOSKIP(RFIFOW(2));
}
else if (RFIFOW(0) == 0x006a) {
+ logger.log("Login::error code: %i", RFIFOB(2));
switch (RFIFOB(2)) {
case 0:
new OkDialog("Error", "Unregistered ID");
@@ -252,6 +253,18 @@ void server_login(const std::string& user, const std::string& pass) {
case 1:
new OkDialog("Error", "Wrong password");
break;
+ case 2:
+ new OkDialog("Error", "This ID is expired");
+ break;
+ case 3:
+ new OkDialog("Error", "Rejected from server");
+ break;
+ case 4:
+ new OkDialog("Error", "You have been blocked by the GM Team");
+ break;
+ case 9:
+ new OkDialog("Error", "The username does already exist.");
+ break;
}
state = LOGIN;
RFIFOSKIP(23);