From 78c51cad419fd81e6171d92af00f12fb423d98e4 Mon Sep 17 00:00:00 2001 From: MangosArentLiterature <58055358+MangosArentLiterature@users.noreply.github.com> Date: Thu, 15 Apr 2021 00:59:22 -0500 Subject: [PATCH] Fix cmdAddStatement - Fix cmdAddStatement not being in the command table - Fix add statement not correctly setting added statements to green text --- include/aoclient.h | 1 + src/testimony_recorder.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/aoclient.h b/include/aoclient.h index d64c774..6626972 100644 --- a/include/aoclient.h +++ b/include/aoclient.h @@ -1760,6 +1760,7 @@ class AOClient : public QObject { {"pause", {ACLFlags.value("CM"), 0, &AOClient::cmdPauseTestimony}}, {"delete", {ACLFlags.value("CM"), 0, &AOClient::cmdDeleteStatement}}, {"update", {ACLFlags.value("CM"), 0, &AOClient::cmdUpdateStatement}}, + {"add", {ACLFlags.value("CM"), 0, &AOClient::cmdAddStatement}}, {"reload", {ACLFlags.value("SUPER"), 0, &AOClient::cmdReload}}, {"disemvowel", {ACLFlags.value("MUTE"), 1, &AOClient::cmdDisemvowel}}, {"undisemvowel", {ACLFlags.value("MUTE"), 1, &AOClient::cmdUnDisemvowel}}, diff --git a/src/testimony_recorder.cpp b/src/testimony_recorder.cpp index 3c6897d..01178b5 100644 --- a/src/testimony_recorder.cpp +++ b/src/testimony_recorder.cpp @@ -39,6 +39,7 @@ void AOClient::addStatement(QStringList packet) } } else if (area->test_rec == AreaData::TestimonyRecording::ADD) { + packet[14] = "1"; area->testimony.insert(c_statement,packet); area->test_rec = AreaData::TestimonyRecording::PLAYBACK; }