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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user