fix stupid crash

This commit is contained in:
scatterflower 2021-04-10 00:42:06 -05:00
parent 74f171f139
commit 08a8e63d86

View File

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