From b81c5e80634736b0069eedfa56604c141e7c9bbf Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 9 Apr 2005 13:09:48 +0000 Subject: Adding new login error messages --- src/gui/login.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gui') 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); -- cgit v1.2.3-70-g09d2