diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-09 13:09:48 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-09 13:09:48 +0000 |
commit | b81c5e80634736b0069eedfa56604c141e7c9bbf (patch) | |
tree | 73f90de87d1f640220d77d46f309a2cc205104b9 /src | |
parent | 0a93e5f7e5170127d63a3d8aecab960ac13cf81f (diff) | |
download | mana-b81c5e80634736b0069eedfa56604c141e7c9bbf.tar.gz mana-b81c5e80634736b0069eedfa56604c141e7c9bbf.tar.bz2 mana-b81c5e80634736b0069eedfa56604c141e7c9bbf.tar.xz mana-b81c5e80634736b0069eedfa56604c141e7c9bbf.zip |
Adding new login error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/login.cpp | 13 |
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); |