mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
remove client join time tracking
This commit is contained in:
parent
18fd86ce98
commit
bfeba1f2f3
2 changed files with 6 additions and 23 deletions
|
|
@ -939,13 +939,7 @@ func extjwtHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Re
|
|||
claims["joined"] = 0
|
||||
claims["cmodes"] = []string{}
|
||||
if channel.hasClient(client) {
|
||||
joinTime := channel.ClientJoinTime(client)
|
||||
if joinTime.IsZero() {
|
||||
// shouldn't happen, only in races
|
||||
rb.Add(nil, server.name, "FAIL", "EXTJWT", "UNKNOWN_ERROR", client.t("Channel join time is inconsistent, JWT not generated"))
|
||||
return false
|
||||
}
|
||||
claims["joined"] = joinTime.Unix()
|
||||
claims["joined"] = 1
|
||||
claims["cmodes"] = channel.ClientModeStrings(client)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue