summaryrefslogtreecommitdiff
path: root/src/gui/login/LoginModel.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-20 15:19:31 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-20 15:19:31 (GMT)
commitfcff2ecc7fdaf93c39086fa52ae6608982fd509c (patch)
tree830284e4034e30b88b23fe9fd90a5ab3cafb3c6c /src/gui/login/LoginModel.cpp
parent06fb97bc40e23af63557b6c1b6b50b7898fad1b0 (diff)
downloadpowder-fcff2ecc7fdaf93c39086fa52ae6608982fd509c.zip
powder-fcff2ecc7fdaf93c39086fa52ae6608982fd509c.tar.gz
fix message when banned not fitting in the window, also partially fix issue #98 but needs to be done from the server
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();