diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-10-19 01:30:37 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-10-19 01:30:37 +0200 |
commit | 3e17bfe4f2e5e64f9528c26b38d4241ca46f1082 (patch) | |
tree | 940e98c492e136fa1d4bbd83abacc3d90b90adb8 /src/madc.cpp | |
parent | 8635603e2f4f8b61026f69532f3cda51bd711f91 (diff) | |
download | mad-3e17bfe4f2e5e64f9528c26b38d4241ca46f1082.tar mad-3e17bfe4f2e5e64f9528c26b38d4241ca46f1082.zip |
Client: Added support for paged output
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/madc.cpp b/src/madc.cpp index 477dc04..79c446b 100644 --- a/src/madc.cpp +++ b/src/madc.cpp @@ -29,8 +29,8 @@ #include "Client/Application.h" #include "Client/CommandParser.h" +#include "Client/ConsoleUtil.h" #include "Client/InformationManager.h" -#include "Client/PasswordReader.h" #include "Client/Authenticators/ChallengeResponseAuthenticator.h" #include "Client/Authenticators/PasswordAuthenticator.h" @@ -97,7 +97,7 @@ int main(int argc, char *argv[]) { { std::cerr << "Login: " << std::flush; Core::String username = Core::String::getline(std::cin); - Core::String password = Client::PasswordReader::readPassword("Password: "); + Core::String password = Client::ConsoleUtil::readPassword("Password: "); try { Client::Authenticators::ChallengeResponseAuthenticator::authenticate(&application, connection, username, password); @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) { application.getUserManager()->unregisterBackend(networkUserBackend); } catch(Core::Exception &e) { - application.log(Core::Logger::LOG_CRITICAL, Core::Format("Error: %s") % e); + application.log(Core::Logger::LOG_CRITICAL, Core::Format("Error: %1%") % e); } application.getRequestManager()->unregisterConnection(connection); |