forked from External/ergo
clean up redundant check for sasl mechanism
This commit is contained in:
parent
e1401934df
commit
41822813c0
1 changed files with 2 additions and 13 deletions
|
|
@ -220,19 +220,8 @@ func authenticateHandler(server *Server, client *Client, msg ircmsg.Message, rb
|
|||
}
|
||||
|
||||
// call actual handler
|
||||
handler, handlerExists := EnabledSaslMechanisms[session.sasl.mechanism]
|
||||
|
||||
// like 100% not required, but it's good to be safe I guess
|
||||
if !handlerExists {
|
||||
rb.Add(nil, server.name, ERR_SASLFAIL, details.nick, client.t("SASL authentication failed"))
|
||||
session.sasl.Clear()
|
||||
return false
|
||||
}
|
||||
|
||||
// let the SASL handler do its thing
|
||||
exiting := handler(server, client, session, data, rb)
|
||||
|
||||
return exiting
|
||||
handler := EnabledSaslMechanisms[session.sasl.mechanism]
|
||||
return handler(server, client, session, data, rb)
|
||||
}
|
||||
|
||||
// AUTHENTICATE PLAIN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue