mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Ensure the AUTHENTICATE command always returns a response.
This commit is contained in:
parent
bb189aecb7
commit
a84010cd64
@ -335,10 +335,16 @@ public:
|
||||
{
|
||||
{
|
||||
if (!cap.IsEnabled(user))
|
||||
{
|
||||
user->WriteNumeric(ERR_UNKNOWNCOMMAND, name, "You must request the sasl capability to use this command");
|
||||
return CmdResult::FAILURE;
|
||||
}
|
||||
|
||||
if (parameters[0].find(' ') != std::string::npos || parameters[0][0] == ':')
|
||||
{
|
||||
user->WriteNumeric(ERR_SASLABORTED, "SASL authentication aborted");
|
||||
return CmdResult::FAILURE;
|
||||
}
|
||||
|
||||
if (parameters[0].length() > MAX_AUTHENTICATE_SIZE)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user