Fix cmdAddStatement

- Fix cmdAddStatement not being in the command table
- Fix add statement not correctly setting added statements to green text
This commit is contained in:
MangosArentLiterature 2021-04-15 00:59:22 -05:00
parent 853e6e3ff4
commit 78c51cad41
2 changed files with 2 additions and 0 deletions

View File

@ -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}},

View File

@ -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;
}