mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Script/Commands): ticket response append crash (#23357)
This commit is contained in:
@@ -467,12 +467,18 @@ public:
|
||||
|
||||
static bool HandleGMTicketResponseAppendCommand(ChatHandler* handler, uint32 ticketId, Tail res)
|
||||
{
|
||||
return TicketResponseAppend(ticketId, false, handler, res.data());
|
||||
if (res.empty())
|
||||
return false;
|
||||
else
|
||||
return TicketResponseAppend(ticketId, false, handler, res.data());
|
||||
}
|
||||
|
||||
static bool HandleGMTicketResponseAppendLnCommand(ChatHandler* handler, uint32 ticketId, Tail res)
|
||||
{
|
||||
return TicketResponseAppend(ticketId, true, handler, res.data());
|
||||
if (res.empty())
|
||||
return false;
|
||||
else
|
||||
return TicketResponseAppend(ticketId, true, handler, res.data());
|
||||
}
|
||||
|
||||
static bool HandleGMTicketResponseDeleteCommand(ChatHandler* handler, uint32 ticketId)
|
||||
|
||||
Reference in New Issue
Block a user