summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/accounthandler.cpp6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a1266d8..feb0489e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-26 Bjørn Lindeijer <bjorn@lindeijer.nl>
+
+ * src/accounthandler.cpp: Read game and chat server addresses to send
+ to the client from the configuration file.
+
2006-08-25 Rogier Polak <rogier_polak@users.sourceforge.net>
* src/accountclient.h, src/messageout.cpp, src/accounthandler.cpp,
diff --git a/src/accounthandler.cpp b/src/accounthandler.cpp
index ec534d9d..783017f6 100644
--- a/src/accounthandler.cpp
+++ b/src/accounthandler.cpp
@@ -196,9 +196,11 @@ AccountHandler::processMessage(NetComputer *comp, MessageIn &message)
1 + (int) (127 * (rand() / (RAND_MAX + 1.0)));
}
result.writeString(magic_token, 32);
- result.writeString("www.lindeijer.nl"); // TODO
+ result.writeString(config.getValue("clientGameServerAddress",
+ "localhost"));
result.writeShort(9603);
- result.writeString("www.lindeijer.nl");
+ result.writeString(config.getValue("clientChatServerAddress",
+ "localhost"));
result.writeShort(9602);
registerGameClient(magic_token, selectedChar);