mirror of
https://github.com/CFC-Servers/cfc_chat_transit.git
synced 2025-03-04 03:03:05 -05:00
Use default color if we cant find it
This commit is contained in:
parent
9aeae61d63
commit
fc11cc59bc
@ -60,12 +60,13 @@ ChatTransit.Send = (data) =>
|
||||
@WebSocket\write TableToJSON data
|
||||
|
||||
ChatTransit.GetRankColor = (ply) =>
|
||||
groupName = ULib.ucl.users[ply\SteamID!].group
|
||||
team = ULib.ucl.groups[groupName].team
|
||||
user = ULib.ucl.users[ply\SteamID!]
|
||||
groupName = user and user.group or "user"
|
||||
|
||||
team = ULib.ucl.groups[groupName].team
|
||||
teamColor = "#{team.color_red} #{team.color_green} #{team.color_blue} 255"
|
||||
|
||||
teamColor
|
||||
return teamColor
|
||||
|
||||
ChatTransit.guard = (f, delay) -> (...) ->
|
||||
args = {...}
|
||||
|
Loading…
Reference in New Issue
Block a user