1
0
Fork 0
forked from External/ergo

Review fixes

This commit is contained in:
Daniel Oaks 2020-04-17 16:23:18 +10:00 committed by Shivaram Lingamneni
parent 4164c643e6
commit 6bee1f6d6a
3 changed files with 11 additions and 25 deletions

View file

@ -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