mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
If the user hasnt sent CAP REQ sasl, do nothing if AUTHENTICATE is sent by that user
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9154 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
cd8d817ac4
commit
c798703113
@ -30,17 +30,21 @@ class CommandAuthenticate : public Command
|
||||
{
|
||||
if (user->registered != REG_ALL)
|
||||
{
|
||||
/* Only allow AUTHENTICATE on unregistered clients */
|
||||
std::deque<std::string> params;
|
||||
params.push_back("*");
|
||||
params.push_back("AUTHENTICATE");
|
||||
params.push_back(user->uuid);
|
||||
/* Only act if theyve enabled CAP REQ sasl */
|
||||
if (user->GetExt("sasl"))
|
||||
{
|
||||
/* Only allow AUTHENTICATE on unregistered clients */
|
||||
std::deque<std::string> params;
|
||||
params.push_back("*");
|
||||
params.push_back("AUTHENTICATE");
|
||||
params.push_back(user->uuid);
|
||||
|
||||
for (int i = 0; i < pcnt; ++i)
|
||||
params.push_back(parameters[i]);
|
||||
for (int i = 0; i < pcnt; ++i)
|
||||
params.push_back(parameters[i]);
|
||||
|
||||
Event e((char*)¶ms, Creator, "send_encap");
|
||||
e.Send(ServerInstance);
|
||||
Event e((char*)¶ms, Creator, "send_encap");
|
||||
e.Send(ServerInstance);
|
||||
}
|
||||
}
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user