mirror of
https://github.com/anope/anope.git
synced 2026-06-30 10:56:38 +02:00
Give a reason why we cant clear nonssl users on ircds with no ssl usermode
This commit is contained in:
@@ -107,6 +107,12 @@ 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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user