diff options
| author | Crystalwarrior <Varsash@Gmail.com> | 2020-07-27 20:09:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 12:09:09 -0500 |
| commit | 4a0df25c39b429291c77d571dc9e667831b43a89 (patch) | |
| tree | 58e000b34c564aa384de6e777082efabf7ecb5d3 /src/courtroom.cpp | |
| parent | 37520f9318c12fe07c11f6dd04c30377a3427ea7 (diff) | |
Fix chatlog instances where char_id 0 is ignored (#210)
Diffstat (limited to 'src/courtroom.cpp')
| -rw-r--r-- | src/courtroom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 2d22b5a7..109c3479 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1719,7 +1719,7 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) return; QString f_showname; - if (f_char_id > 0 && + if (f_char_id > -1 && (m_chatmessage[SHOWNAME].isEmpty() || !ui_showname_enable->isChecked())) { f_showname = ao_app->get_showname(char_list.at(f_char_id).name); } @@ -2161,7 +2161,7 @@ void Courtroom::handle_chatmessage_3() QString f_showname; int f_char_id = m_chatmessage[CHAR_ID].toInt(); - if (f_char_id > 0 && + if (f_char_id > -1 && (m_chatmessage[SHOWNAME].isEmpty() || !ui_showname_enable->isChecked())) { f_showname = ao_app->get_showname(char_list.at(f_char_id).name); } |
