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

use ec_markup.GetText here instead

This commit is contained in:
Earu 2022-07-01 12:01:01 +02:00
parent e7775be0e0
commit 46ad28d763

View File

@ -130,11 +130,8 @@ function EasyChat.GetProperNick(ply)
local ply_nick = EasyChat.NativeNick(ply)
if not ec_markup then return ply_nick end
local mk = ec_markup.CachePlayer("EasyChat", ply, function()
return ec_markup.Parse(ply_nick, nil, true)
end)
return mk and mk:GetText() or ply_nick
return ec_markup.GetText(ply_nick, true)
end
PLY.Nick = EasyChat.GetProperNick