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

Fix unconnected nicks (#136)

This commit is contained in:
Astralcircle 2025-02-17 13:00:07 +03:00 committed by GitHub
parent 15b18373f7
commit 43b123e1e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,6 +129,8 @@ function EasyChat.GetProperNick(ply)
if not IsValid(ply) then return get_unknown_name(ply) end if not IsValid(ply) then return get_unknown_name(ply) end
local ply_nick = EasyChat.NativeNick(ply) local ply_nick = EasyChat.NativeNick(ply)
if ply_nick == "unconnected" then return ply_nick end
if ec_markup then if ec_markup then
local mk = ec_markup.CachePlayer("EasyChat", ply, function() local mk = ec_markup.CachePlayer("EasyChat", ply, function()
return ec_markup.AdvancedParse(ply_nick, { nick = true }) return ec_markup.AdvancedParse(ply_nick, { nick = true })