fix stupid crash
This commit is contained in:
parent
74f171f139
commit
08a8e63d86
@ -185,6 +185,8 @@ void AOClient::pktOocChat(AreaData* area, int argc, QStringList argv, AOPacket p
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
QString message = dezalgo(argv[1]);
|
QString message = dezalgo(argv[1]);
|
||||||
|
if (message.length() == 0)
|
||||||
|
return;
|
||||||
AOPacket final_packet("CT", {ooc_name, message, "0"});
|
AOPacket final_packet("CT", {ooc_name, message, "0"});
|
||||||
if(message.at(0) == '/') {
|
if(message.at(0) == '/') {
|
||||||
QStringList cmd_argv = message.split(" ", QString::SplitBehavior::SkipEmptyParts);
|
QStringList cmd_argv = message.split(" ", QString::SplitBehavior::SkipEmptyParts);
|
||||||
|
Loading…
Reference in New Issue
Block a user