From 844e9a7a72faca6a212e788a3adc45e17f41dca6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 May 2010 21:27:58 +0300 Subject: Add chat logging. Add option in players setup page. Add command line option. Signed-off-by: Jared Adams --- src/gui/serverdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/serverdialog.cpp') diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 0fba5638..3eeb6f9c 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -21,6 +21,7 @@ #include "gui/serverdialog.h" +#include "chatlog.h" #include "client.h" #include "configuration.h" #include "gui.h" @@ -344,6 +345,8 @@ void ServerDialog::action(const gcn::ActionEvent &event) // Save the selected server mServerInfo->save = true; + chatLogger->setServerName(mServerInfo->hostname); + saveCustomServers(*mServerInfo); Client::setState(STATE_CONNECT_SERVER); -- cgit v1.2.3-70-g09d2