mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
cache the markup obj
This commit is contained in:
parent
46ad28d763
commit
271d5c9379
@ -129,7 +129,13 @@ function EasyChat.GetProperNick(ply)
|
||||
if not IsValid(ply) then return get_unknown_name(ply) end
|
||||
|
||||
local ply_nick = EasyChat.NativeNick(ply)
|
||||
if not ec_markup then return ply_nick end
|
||||
if ec_markup then
|
||||
local mk = ec_markup.CachePlayer("EasyChat", ply, function()
|
||||
return ec_markup.AdvancedParse(ply_nick, { nick = true })
|
||||
end)
|
||||
|
||||
return mk:GetText()
|
||||
end
|
||||
|
||||
return ec_markup.GetText(ply_nick, true)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user