aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorin1tiate <radwoodward@vikings.grayson.edu>2021-04-23 00:30:50 -0500
committerin1tiate <radwoodward@vikings.grayson.edu>2021-04-23 00:30:50 -0500
commit9359ed7f54dd996d879e465c87d5b9631bc6d6bb (patch)
treed795efc6f085d5f6047033a38d009686a1d006ba
parent3e4de5da62966b63dc553fd793cb6de3d2f48391 (diff)
make sure we save the shownames even when theyre disabled
-rw-r--r--src/courtroom.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 776c0c93..8bbaaa93 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2067,11 +2067,6 @@ void Courtroom::log_chatmessage(QString f_message, int f_char_id, QString f_show
if (f_char_id != -1) {
// Grab the char.ini showname
f_showname = ao_app->get_showname(char_list.at(f_char_id).name);
- // If custom serversided shownames are not enabled
- if (!ui_showname_enable->isChecked()) {
- // Set the display name to the char.ini showname
- f_displayname = f_showname;
- }
}
// If display name is just whitespace, use the char.ini showname.
if (f_displayname.trimmed().isEmpty())
@@ -2171,6 +2166,8 @@ void Courtroom::log_chatmessage(QString f_message, int f_char_id, QString f_show
append_ic_text(f_message, f_displayname, "",f_color);
break;
}
+ if (!ui_showname_enable->isChecked())
+ regenerate_ic_chatlog();
}
bool Courtroom::handle_objection()