diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-05-16 13:14:34 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-05-16 13:14:34 +0000 |
commit | 95684834ecb45261da1640a4ad8143653698b192 (patch) | |
tree | b0f6da9e6729082ac40812fbb5815109673efd67 /src/net | |
parent | 99f361699e1c8bbc1e69f4d199863b836b3528a3 (diff) | |
download | manaverse-95684834ecb45261da1640a4ad8143653698b192.tar.gz manaverse-95684834ecb45261da1640a4ad8143653698b192.tar.bz2 manaverse-95684834ecb45261da1640a4ad8143653698b192.tar.xz manaverse-95684834ecb45261da1640a4ad8143653698b192.zip |
Refactor loadFromLogFile calls into ChatTab contructor
This has the side effect that now #Debug history is also loaded.
****
mana/plus!84
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/partyrecv.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/clanrecv.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/guildrecv.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/guildmanager.cpp | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/src/net/ea/partyrecv.cpp b/src/net/ea/partyrecv.cpp index 370cfed9c..53cb0227e 100644 --- a/src/net/ea/partyrecv.cpp +++ b/src/net/ea/partyrecv.cpp @@ -226,8 +226,6 @@ void PartyRecv::processPartyUpdateCoords(Net::MessageIn &msg) void PartyRecv::createTab() { partyTab = new PartyTab(chatWindow); - if (config.getBoolValue("showChatHistory")) - partyTab->loadFromLogFile("#Party"); } } // namespace Ea diff --git a/src/net/eathena/clanrecv.cpp b/src/net/eathena/clanrecv.cpp index 9ecb860a9..c686796dd 100644 --- a/src/net/eathena/clanrecv.cpp +++ b/src/net/eathena/clanrecv.cpp @@ -125,8 +125,6 @@ void ClanRecv::createTab() if (clanTab != nullptr) return; clanTab = new ClanTab(chatWindow); - if (config.getBoolValue("showChatHistory")) - clanTab->loadFromLogFile("#Clan"); } } // namespace EAthena diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index 74b8d9b8d..3d402c5b9 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -698,8 +698,6 @@ void GuildRecv::processGuildPositionInfo(Net::MessageIn &msg) if ((guildTab == nullptr) && (chatWindow != nullptr)) { guildTab = new GuildTab(chatWindow); - if (config.getBoolValue("showChatHistory")) - guildTab->loadFromLogFile("#Guild"); if (localPlayer != nullptr) localPlayer->addGuild(taGuild); guildHandler->memberList(); diff --git a/src/net/tmwa/guildmanager.cpp b/src/net/tmwa/guildmanager.cpp index f00e444db..52c056de6 100644 --- a/src/net/tmwa/guildmanager.cpp +++ b/src/net/tmwa/guildmanager.cpp @@ -234,8 +234,6 @@ void GuildManager::createTab(Guild *const guild) if (mTab == nullptr) { mTab = new EmulateGuildTab(chatWindow); - if (config.getBoolValue("showChatHistory")) - mTab->loadFromLogFile("#Guild"); if (localPlayer != nullptr) localPlayer->addGuild(guild); } |