Skip to content

Commit a1c39d5

Browse files
committed
Added unix epoch login time
1 parent a77e1b8 commit a1c39d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/gmcp/gmcp.Game.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ func (g *GMCPGameModule) sendAllGameNodes(userId int) {
128128

129129
// Send Game.Info
130130
infoPayload := map[string]interface{}{
131-
"engine": "GoMud",
132-
"login_time": user.GetConnectTime().Format(tFormat),
133-
"name": string(c.Server.MudName),
131+
"engine": "GoMud",
132+
"login_time": user.GetConnectTime().Format(tFormat),
133+
"login_time_epoch": user.GetConnectTime().Unix(),
134+
"name": string(c.Server.MudName),
134135
}
135136

136137
events.AddToQueue(GMCPOut{

0 commit comments

Comments
 (0)