mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-19 06:22:26 +00:00
Push pretty RRID to Lua instead of unsanitized madness
This commit is contained in:
parent
b990669212
commit
05f8b2196c
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include "lua_libs.h"
|
||||
#include "lua_hud.h" // hud_running errors
|
||||
#include "lua_hook.h" // hook_cmd_running errors
|
||||
#include "k_profiles.h" // GetPrettyRRID
|
||||
|
||||
static int lib_iteratePlayers(lua_State *L)
|
||||
{
|
||||
|
|
@ -508,7 +509,7 @@ static int player_get(lua_State *L)
|
|||
else if (fastcmp(field,"ping"))
|
||||
lua_pushinteger(L, playerpingtable[( plr - players )]);
|
||||
else if (fastcmp(field, "public_key"))
|
||||
lua_pushstring(L, plr->public_key);
|
||||
lua_pushstring(L, GetPrettyRRID(plr->public_key, false));
|
||||
else {
|
||||
lua_getfield(L, LUA_REGISTRYINDEX, LREG_EXTVARS);
|
||||
I_Assert(lua_istable(L, -1));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue