feat: pass ChatHandler to OnCommand call

This commit is contained in:
Axel Cocat
2022-02-15 10:38:12 +01:00
parent 84f2edc6df
commit 19e0f03b2d

View File

@@ -332,7 +332,7 @@ public:
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;
}