mirror of
https://github.com/anope/anope.git
synced 2026-06-29 04:26:37 +02:00
Actually we can use this ssl ext type which apparently does exist
This commit is contained in:
@@ -107,12 +107,6 @@ class CommandCSEnforce : public Command
|
||||
|
||||
void DoSSLOnly(CommandSource &source, ChannelInfo *ci)
|
||||
{
|
||||
if (!ModeManager::FindUserModeByName("SSL"))
|
||||
{
|
||||
source.Reply(_("Your IRCD has no SSL usermode, so this can't be done."));
|
||||
return;
|
||||
}
|
||||
|
||||
bool override = !source.AccessFor(ci).HasPriv("AKICK") && source.HasPriv("chanserv/access/modify");
|
||||
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to enforce SSL only";
|
||||
|
||||
@@ -125,7 +119,7 @@ class CommandCSEnforce : public Command
|
||||
if (user->IsProtected())
|
||||
continue;
|
||||
|
||||
if (!user->HasMode("SSL"))
|
||||
if (!user->HasMode("SSL") && !user->HasExt("ssl"))
|
||||
users.push_back(user);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user