aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmniTroid <davidskoland@gmail.com>2017-04-05 01:21:11 +0200
committerOmniTroid <davidskoland@gmail.com>2017-04-05 01:21:11 +0200
commite580fd3b29c66b06e2a111411ff24366d5b5ffe8 (patch)
tree74af65ce8fc4d466dcd31466e0ecaedc326b5d9d
parent8a8062fbbf9a20905e28eb97837ea538d23da862 (diff)
Fixed a bug where talking didn't work on legacy servers
-rw-r--r--courtroom.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 05ee6892..d8d9d4c1 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);