diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
commit | b8dbdb628ba7a07a785e494d0ed76ebfe9e06615 (patch) | |
tree | 173d22e656ac771e473cdb7c1d035963d39c27e1 /src/gui/login.cpp | |
parent | b05628214d64e579504c87da72e79c024245a631 (diff) | |
download | mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.gz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.bz2 mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.xz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.zip |
Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r-- | src/gui/login.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 56373011..3b9c3cac 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -113,7 +113,7 @@ void LoginDialog::action(const std::string& eventId) { if (eventId == "ok") { const std::string user = userField->getText(); - logger.log("Network: Username is %s", user.c_str()); + logger->log("Network: Username is %s", user.c_str()); // Store config settings config.setValue("remember", keepCheck->isMarked()); @@ -134,7 +134,7 @@ void LoginDialog::action(const std::string& eventId) state = EXIT; } else if (eventId == "register") { const std::string user = userField->getText(); - logger.log("LoginDialog::register Username is %s", user.c_str()); + logger->log("LoginDialog::register Username is %s", user.c_str()); // Store config settings config.setValue("remember", keepCheck->isMarked()); @@ -239,13 +239,13 @@ void server_login(const std::string& user, const std::string& pass) { server_info[i].port = RFIFOW(47 + 32 * i + 4); state = CHAR_SERVER; } - logger.log("Network: Server: %s (%s:%d)", server_info[0].name, + logger->log("Network: Server: %s (%s:%d)", server_info[0].name, iptostring(server_info[0].address), server_info[0].port); RFIFOSKIP(RFIFOW(2)); } else if (RFIFOW(0) == 0x006a) { - logger.log("Login::error code: %i", RFIFOB(2)); + logger->log("Login::error code: %i", RFIFOB(2)); switch (RFIFOB(2)) { case 0: new OkDialog("Error", "Unregistered ID"); |