cogiendo
This commit is contained in:
parent
63d0fac173
commit
fec49ec567
@ -448,7 +448,7 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
|
|||||||
if (client_name == "") {
|
if (client_name == "") {
|
||||||
client_name = client.character(); // fallback in case of empty ooc name
|
client_name = client.character(); // fallback in case of empty ooc name
|
||||||
}
|
}
|
||||||
if (area->testimonyRecording() == AreaData::TestimonyRecording::RECORDING || area->testimonyRecording() == AreaData::TestimonyRecording::ADD) {
|
if ((area->testimonyRecording() == AreaData::TestimonyRecording::RECORDING || area->testimonyRecording() == AreaData::TestimonyRecording::ADD) && client.m_pos == "wit") {
|
||||||
// -1 indicates title
|
// -1 indicates title
|
||||||
if (area->statement() == -1) {
|
if (area->statement() == -1) {
|
||||||
l_args[4] = "~~-- " + l_args[4] + " --";
|
l_args[4] = "~~-- " + l_args[4] + " --";
|
||||||
@ -456,6 +456,9 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
|
|||||||
client.getServer()->broadcast(PacketFactory::createPacket("RT", {"testimony1", "0"}), client.areaId());
|
client.getServer()->broadcast(PacketFactory::createPacket("RT", {"testimony1", "0"}), client.areaId());
|
||||||
}
|
}
|
||||||
client.addStatement(l_args);
|
client.addStatement(l_args);
|
||||||
|
if (area->testimonyRecording() == AreaData::TestimonyRecording::ADD) {
|
||||||
|
l_args[14] = "1";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (area->testimonyRecording() == AreaData::TestimonyRecording::UPDATE) {
|
else if (area->testimonyRecording() == AreaData::TestimonyRecording::UPDATE) {
|
||||||
l_args = client.updateStatement(l_args);
|
l_args = client.updateStatement(l_args);
|
||||||
|
Loading…
Reference in New Issue
Block a user