mirror of
https://github.com/araxiaonline/mod-eluna.git
synced 2026-06-13 03:02:27 -04: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
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user