feat: pass ChatHandler to OnCommand call

feat: pass ChatHandler to OnCommand call
This commit is contained in:
55Honey
2022-02-20 18:14:13 +01:00
committed by GitHub

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;
}