1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

[Client] Fix saving channel history

This commit is contained in:
Koncord 2017-12-08 22:36:16 +08:00
parent 1c7330635b
commit 7eecbfd08e

View file

@ -365,8 +365,8 @@ namespace mwmp
void GUIChat::setChannel(ChannelIter it, bool saveHistory)
{
if (saveHistory)
channels[currentChannel].channelText = mHistory->getCaption();
if (saveHistory && !mHistory->getCaption().empty())
getChannel(currentChannel)->channelText = mHistory->getCaption();
mHistory->setCaption(it->channelText);
currentChannel = it->channel;