1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

use EngineNick if it exists

This commit is contained in:
Earu 2021-08-15 10:40:33 +02:00
parent 72400178e1
commit 65483d5594

View File

@ -1,7 +1,7 @@
local TAG = "EasyChatEngineChatHack"
local PLY_META = FindMetaTable("Player")
local old_nick = PLY_META.Nick
local old_nick = PLY_META.EngineNick or PLY_META.Nick
if debug.getinfo(old_nick).source == "=[C]" then
function PLY_META:Nick()
-- we do this because steam censors player's names if they have "steam" in there