1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 05:26:37 +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
+5
View File
@@ -448,6 +448,11 @@ bool User::IsRecognized(bool check_secure) const
return on_access;
}
bool User::IsSecurelyConnected() const
{
return HasMode("SSL") || HasExt("ssl");
}
bool User::IsServicesOper()
{
if (!this->nc || !this->nc->IsServicesOper())