File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ addCommandHandler("crun",
6969 function (player , command , ...)
7070 local commandstring = table.concat ({... }, " " )
7171 if player then
72+ outputChatBoxR (getPlayerName (player ) .. " executed client-side command: " .. commandstring , false )
7273 return triggerClientEvent (player , " doCrun" , rootElement , commandstring )
7374 else
7475 return runString (commandstring , false , false )
@@ -81,7 +82,8 @@ function httpRun(commandstring)
8182 if not user then outputDebugString ( " httpRun can only be called via http" , 2 ) return end
8283
8384 -- check acl permission
84- local objectName = " user." .. getAccountName (user )
85+ local accName = getAccountName (user )
86+ local objectName = " user." .. accName
8587
8688 if (not hasObjectPermissionTo (objectName , " command.srun" , false )) then
8789 outputServerLog (getAccountName (user ) .. " from " .. hostname .. " attempted to execute Lua code with missing acl permission (command.srun)" )
@@ -106,6 +108,9 @@ function httpRun(commandstring)
106108 -- It failed.
107109 return " Error: " .. results [2 ]
108110 end
111+
112+ outputChatBoxR (" [HTTP] " .. accName .. " from " .. hostname .. " executed command: " .. commandstring , false )
113+
109114 if not notReturned then
110115 local resultsString = " "
111116 local first = true
You can’t perform that action at this time.
0 commit comments