mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Command): Can comment closed tickets (#3176)
This commit is contained in:
@@ -172,14 +172,13 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
GmTicket* ticket = sTicketMgr->GetTicket(ticketId);
|
GmTicket* ticket = sTicketMgr->GetTicket(ticketId);
|
||||||
if (!ticket || ticket->IsClosed())
|
if (!ticket)
|
||||||
{
|
{
|
||||||
handler->PSendSysMessage(LANG_COMMAND_TICKETNOTEXIST);
|
handler->PSendSysMessage(LANG_COMMAND_TICKETNOTEXIST);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cannot comment ticket assigned to someone else
|
// Cannot comment ticket assigned to someone else (unless done from the Console)
|
||||||
//! Console excluded
|
|
||||||
Player* player = handler->GetSession() ? handler->GetSession()->GetPlayer() : nullptr;
|
Player* player = handler->GetSession() ? handler->GetSession()->GetPlayer() : nullptr;
|
||||||
if (player && ticket->IsAssignedNotTo(player->GetGUID()))
|
if (player && ticket->IsAssignedNotTo(player->GetGUID()))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user