diff options
| author | sD <stoned@derpymail.org> | 2020-04-23 23:42:06 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-04-23 23:42:06 +0200 |
| commit | df42b9e3bfc3d40bc74a09c92a9ea17c768ebadc (patch) | |
| tree | fc864c982b68ff30a503e4354f1affb4d2766c5d | |
| parent | c4b0262c728c9019ea2d84d53308176fe3c73810 (diff) | |
| parent | 896c4e4dbc28470454c9fd37c9ec1b0fe26beb99 (diff) | |
Merge branch '2.7-rc' of https://github.com/AttorneyOnline/AO2-Client into 2.7-rc
| -rw-r--r-- | src/courtroom.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 050d606f..a813d0bd 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -2169,8 +2169,8 @@ void Courtroom::handle_chatmessage_3() ui_ic_chatlog->textCursor().insertHtml("<br>");
else
first_message_sent = true;
-
- ui_ic_chatlog->textCursor().insertHtml("<b>" + m_chatmessage[CHAR_NAME] +
+ QString char_name = char_list.at(m_chatmessage[CHAR_ID].toInt()).name;
+ ui_ic_chatlog->textCursor().insertHtml("<b>" + char_name +
": </b>");
}
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 is_songchange Whether we are appending a song entry
* \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
- * 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 filtering regardless of its status (e.g chat entry, song change etc)
+ * \param skip_filter If we are sending appending text such as html so we skip the
+ * \param filter chat_color The color of the message sent
*/
void Courtroom::append_ic_text(QString p_text, QString p_name,
|
