From 08a8e63d86d58f5c2dd74123702e904d7ec5ea95 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Sat, 10 Apr 2021 00:42:06 -0500 Subject: [PATCH] fix stupid crash --- src/packets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packets.cpp b/src/packets.cpp index 03c858d..b5e944a 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -185,6 +185,8 @@ void AOClient::pktOocChat(AreaData* area, int argc, QStringList argv, AOPacket p return; QString message = dezalgo(argv[1]); + if (message.length() == 0) + return; AOPacket final_packet("CT", {ooc_name, message, "0"}); if(message.at(0) == '/') { QStringList cmd_argv = message.split(" ", QString::SplitBehavior::SkipEmptyParts);