From e7e8447fa39ced57743eab51e8e2835ddddd7001 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 1 Aug 2021 19:23:48 +0100 Subject: Deduplicate code for checking if a user is securely connected. --- modules/commands/cs_enforce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_enforce.cpp') diff --git a/modules/commands/cs_enforce.cpp b/modules/commands/cs_enforce.cpp index 8f21c8c35..968bd25cc 100644 --- a/modules/commands/cs_enforce.cpp +++ b/modules/commands/cs_enforce.cpp @@ -119,7 +119,7 @@ class CommandCSEnforce : public Command if (user->IsProtected()) continue; - if (!user->HasMode("SSL") && !user->HasExt("ssl")) + if (!user->IsSecurelyConnected()) users.push_back(user); } -- cgit