Fixed wrong name being written in mirror mode
This commit is contained in:
parent
955a32a95a
commit
896c4e4dbc
@ -2169,8 +2169,8 @@ void Courtroom::handle_chatmessage_3()
|
|||||||
ui_ic_chatlog->textCursor().insertHtml("<br>");
|
ui_ic_chatlog->textCursor().insertHtml("<br>");
|
||||||
else
|
else
|
||||||
first_message_sent = true;
|
first_message_sent = true;
|
||||||
|
QString char_name = char_list.at(m_chatmessage[CHAR_ID].toInt()).name;
|
||||||
ui_ic_chatlog->textCursor().insertHtml("<b>" + m_chatmessage[CHAR_NAME] +
|
ui_ic_chatlog->textCursor().insertHtml("<b>" + char_name +
|
||||||
": </b>");
|
": </b>");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -2512,9 +2512,9 @@ QString Courtroom::filter_ic_text(QString p_text, bool skip_filter,
|
|||||||
* \param p_name The name of the character/entity who sent said text
|
* \param p_name The name of the character/entity who sent said text
|
||||||
* \param is_songchange Whether we are appending a song entry
|
* \param is_songchange Whether we are appending a song entry
|
||||||
* \param force_filter If we are sending plain text and we want to force the
|
* \param force_filter If we are sending plain text and we want to force the
|
||||||
* filtering regardless of its status (e.g chat entry, song change etc) \param
|
* \param filtering regardless of its status (e.g chat entry, song change etc)
|
||||||
* skip_filter If we are sending appending text such as html so we skip the
|
* \param skip_filter If we are sending appending text such as html so we skip the
|
||||||
* filter \param chat_color The color of the message sent
|
* \param filter chat_color The color of the message sent
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void Courtroom::append_ic_text(QString p_text, QString p_name,
|
void Courtroom::append_ic_text(QString p_text, QString p_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user