1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 04:03:12 +02:00

Deduplicate code for checking if a user is securely connected.

This commit is contained in:
Sadie Powell
2021-08-01 19:23:48 +01:00
parent 561b205c4a
commit e7e8447fa3
5 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -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);
}