From e580fd3b29c66b06e2a111411ff24366d5b5ffe8 Mon Sep 17 00:00:00 2001 From: OmniTroid Date: Wed, 5 Apr 2017 01:21:11 +0200 Subject: [PATCH] Fixed a bug where talking didn't work on legacy servers --- courtroom.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/courtroom.cpp b/courtroom.cpp index 05ee689..d8d9d4c 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -763,9 +763,14 @@ void Courtroom::on_chat_return_pressed() QString f_side = ao_app->get_char_side(current_char); - QString f_desk_mod = QString::number(ao_app->get_desk_mod(current_char, current_emote)); - if (f_desk_mod == "-1") - f_desk_mod = "chat"; + QString f_desk_mod = "chat"; + + if (ao_app->desk_mod_enabled) + { + f_desk_mod = QString::number(ao_app->get_desk_mod(current_char, current_emote)); + if (f_desk_mod == "-1") + f_desk_mod = "chat"; + } packet_contents.append(f_desk_mod);