1
0
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:
Adam
2013-11-18 17:17:06 -05:00
parent 826ae9b6c0
commit b2802d0beb
+6
View File
@@ -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";