From 676db0ba6ff15b0af1530ef6dd46d9cf52507a97 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 18 Nov 2013 18:36:37 -0500 Subject: Actually we can use this ssl ext type which apparently does exist --- modules/commands/cs_enforce.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'modules/commands/cs_enforce.cpp') diff --git a/modules/commands/cs_enforce.cpp b/modules/commands/cs_enforce.cpp index 4797eb31a..8d92d33b6 100644 --- a/modules/commands/cs_enforce.cpp +++ b/modules/commands/cs_enforce.cpp @@ -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); } -- cgit