Skip to content

Commit

Permalink
fix(server): don't invoke cfx_internal:serverPrint on empty string
Browse files Browse the repository at this point in the history
We don't need to send the client "nothing" as data, so we discard it.
  • Loading branch information
tens0rfl0w committed Nov 2, 2024
1 parent 65f927d commit eb0d169
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ bool ServerCommandPacketHandler::Process(fx::ServerInstanceBase* instance, const

fx::ScopeDestructor destructor([&]()
{
if (printString.empty())
{
return;
}

msgpack::sbuffer sb;

msgpack::packer<msgpack::sbuffer> packer(sb);
Expand Down

0 comments on commit eb0d169

Please sign in to comment.