Apply suggestions

This commit is contained in:
wrefgtzweve 2021-06-15 03:00:23 +02:00 committed by plally
parent 040dfd8aeb
commit 8c4d8f95b9

View File

@ -78,17 +78,14 @@ ChatTransit.ReceiveMessage = (ply, text, teamChat) =>
@Logger\debug "Sent message '#{text}' to websocket"
ChatTransit.PlayerConnected = (ply) =>
steamName = ply\Nick!
steamId = ply\SteamID64!
irisId = "none"
struct =
Realm: Realm
Type: "connect"
SteamName: steamName
SteamId: steamId
IrisId: irisId
message = TableToJSON struct
@ -97,14 +94,12 @@ ChatTransit.PlayerConnected = (ply) =>
ChatTransit.PlayerDisconnected = (ply) =>
steamName = ply\Nick!
steamId = ply\SteamID64!
irisId = "none"
struct =
Realm: Realm
Type: "disconnect"
SteamName: steamName
SteamId: steamId
IrisId: irisId
message = TableToJSON struct