summaryrefslogtreecommitdiff
path: root/src/gui/login/LoginModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/login/LoginModel.cpp')
-rw-r--r--src/gui/login/LoginModel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/login/LoginModel.cpp b/src/gui/login/LoginModel.cpp
index 5b70c2c..5aa7e1e 100644
--- a/src/gui/login/LoginModel.cpp
+++ b/src/gui/login/LoginModel.cpp
@@ -20,6 +20,9 @@ void LoginModel::Login(string username, string password)
break;
case LoginError:
statusText = "Error: " + Client::Ref().GetLastError();
+ int banStart = statusText.find(". Ban expire in"); //TODO: temporary, remove this when the ban message is fixed
+ if (banStart != statusText.npos)
+ statusText.replace(banStart, 15, ". Login at http://powdertoy.co.uk in order to see the full ban reason. Ban expires in");
break;
}
notifyStatusChanged();