diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-28 00:42:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-28 00:42:01 +0300 |
commit | 13c2533f4a2d27f1c9156df2a8ad2851be2016fd (patch) | |
tree | 0813ea503e928877f099c474fdf8a7d8c0d1ab12 /src/net/ea | |
parent | 1fd495484bb43a1e0b0d088874d7bc588d8d38c9 (diff) | |
download | plus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.gz plus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.bz2 plus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.xz plus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.zip |
Fix option "Show chat history" for all tabs.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/guildhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/ea/partyhandler.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index 4af230773..5c9b94529 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -22,6 +22,7 @@ #include "net/ea/guildhandler.h" #include "actorspritemanager.h" +#include "configuration.h" #include "localplayer.h" #include "gui/socialwindow.h" @@ -122,7 +123,8 @@ void GuildHandler::processGuildPositionInfo(Net::MessageIn &msg) if (!guildTab && chatWindow) { guildTab = new GuildTab(chatWindow); - guildTab->loadFromLogFile("#Guild"); + if (config.getBoolValue("showChatHistory")) + guildTab->loadFromLogFile("#Guild"); if (player_node) player_node->addGuild(taGuild); memberList(guildId); diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 7702bfcee..0b3576e21 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -22,6 +22,7 @@ #include "net/ea/partyhandler.h" #include "actorspritemanager.h" +#include "configuration.h" #include "localplayer.h" #include "gui/socialwindow.h" @@ -220,7 +221,8 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) return; Ea::partyTab = new PartyTab(chatWindow); - Ea::partyTab->loadFromLogFile("#Party"); + if (config.getBoolValue("showChatHistory")) + Ea::partyTab->loadFromLogFile("#Party"); } // These seem to indicate the sharing mode for exp and items |