mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat: pass ChatHandler to OnCommand call
feat: pass ChatHandler to OnCommand call
This commit is contained in:
@@ -332,7 +332,7 @@ public:
|
|||||||
|
|
||||||
bool CanExecuteCommand(ChatHandler& handler, std::string_view cmdStr) override
|
bool CanExecuteCommand(ChatHandler& handler, std::string_view cmdStr) override
|
||||||
{
|
{
|
||||||
if (!sEluna->OnCommand(handler.IsConsole() ? nullptr : handler.GetSession()->GetPlayer(), std::string(cmdStr).c_str()))
|
if (!sEluna->OnCommand(handler, std::string(cmdStr).c_str()))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user