mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-02-06 12:17:50 +00:00
fix (cmd): caught sig 22 crash with delete cmd
This commit is contained in:
@@ -165,7 +165,7 @@ public:
|
|||||||
|
|
||||||
if (!player)
|
if (!player)
|
||||||
player = PlayerIdentifier::FromTarget(handler);
|
player = PlayerIdentifier::FromTarget(handler);
|
||||||
if (!player)
|
if (!player || !player->IsConnected())
|
||||||
{
|
{
|
||||||
handler->SendSysMessage(LANG_PLAYER_NOT_FOUND);
|
handler->SendSysMessage(LANG_PLAYER_NOT_FOUND);
|
||||||
handler->SetSentErrorMessage(true);
|
handler->SetSentErrorMessage(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user