From 13d03476dad8ec1da07c9fc36c77a9b422fa115d Mon Sep 17 00:00:00 2001 From: Salanto Date: Fri, 23 Apr 2021 17:24:34 +0200 Subject: [PATCH 1/3] Fix-#101 --- src/commands/area.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/area.cpp b/src/commands/area.cpp index efa55f1..58a8d6b 100644 --- a/src/commands/area.cpp +++ b/src/commands/area.cpp @@ -291,6 +291,7 @@ void AOClient::cmdStatus(int argc, QStringList argv) return; } arup(ARUPType::STATUS, true); + sendServerMessage(ooc_name + " changed status to " + arg); } void AOClient::cmdJudgeLog(int argc, QStringList argv) From 532a48cd1df07be37f43bbf313f4264baedf3907 Mon Sep 17 00:00:00 2001 From: Salanto Date: Fri, 23 Apr 2021 17:25:08 +0200 Subject: [PATCH 2/3] Update area.cpp --- src/commands/area.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/area.cpp b/src/commands/area.cpp index 58a8d6b..8ae19af 100644 --- a/src/commands/area.cpp +++ b/src/commands/area.cpp @@ -291,7 +291,7 @@ void AOClient::cmdStatus(int argc, QStringList argv) return; } arup(ARUPType::STATUS, true); - sendServerMessage(ooc_name + " changed status to " + arg); + sendServerMessageArea(ooc_name + " changed status to " + arg); } void AOClient::cmdJudgeLog(int argc, QStringList argv) From e44f6870306468c7ef3ac299a8fbca186c2f4727 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Sun, 25 Apr 2021 12:57:02 -0500 Subject: [PATCH 3/3] fix crash due to empty packets --- src/aopacket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aopacket.cpp b/src/aopacket.cpp index 2d16997..9eb703b 100644 --- a/src/aopacket.cpp +++ b/src/aopacket.cpp @@ -25,6 +25,9 @@ AOPacket::AOPacket(QString p_header, QStringList p_contents) AOPacket::AOPacket(QString p_packet) { + if (p_packet.isEmpty()) + return; + QStringList packet_contents = p_packet.split("#"); if (p_packet.at(0) == '#') { // The header is encrypted with FantaCrypt