summaryrefslogtreecommitdiff
path: root/src/gui/widgets/whispertab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-05-01 21:27:58 +0300
committerJared Adams <jaxad0127@gmail.com>2010-05-01 17:06:27 -0600
commit844e9a7a72faca6a212e788a3adc45e17f41dca6 (patch)
treef488e4c149687ea3d60f39c042c241df7275b581 /src/gui/widgets/whispertab.cpp
parentc22ea2f169f58e765fc699fcd71bfd3a3cd4f859 (diff)
downloadmana-844e9a7a72faca6a212e788a3adc45e17f41dca6.tar.gz
mana-844e9a7a72faca6a212e788a3adc45e17f41dca6.tar.bz2
mana-844e9a7a72faca6a212e788a3adc45e17f41dca6.tar.xz
mana-844e9a7a72faca6a212e788a3adc45e17f41dca6.zip
Add chat logging.
Add option in players setup page. Add command line option. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r--src/gui/widgets/whispertab.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp
index 858a2e6b..89ff72d3 100644
--- a/src/gui/widgets/whispertab.cpp
+++ b/src/gui/widgets/whispertab.cpp
@@ -21,6 +21,7 @@
#include "whispertab.h"
+#include "chatlog.h"
#include "commandhandler.h"
#include "localplayer.h"
@@ -114,3 +115,9 @@ bool WhisperTab::handleCommand(const std::string &type,
return true;
}
+
+void WhisperTab::saveToLogFile(std::string &msg)
+{
+ if (chatLogger)
+ chatLogger->log(getNick(), msg);
+} \ No newline at end of file