forked from External/ergo
Review fixes
This commit is contained in:
parent
4164c643e6
commit
6bee1f6d6a
3 changed files with 11 additions and 25 deletions
|
|
@ -940,7 +940,7 @@ func extjwtHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Re
|
|||
claims["cmodes"] = []string{}
|
||||
if channel.hasClient(client) {
|
||||
joinTime := channel.ClientJoinTime(client)
|
||||
if joinTime == nil {
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue