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