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. --- include/users.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/users.h b/include/users.h index f7756e7c2..c96cc8145 100644 --- a/include/users.h +++ b/include/users.h @@ -226,6 +226,11 @@ class CoreExport User : public virtual Base, public Extensible, public CommandRe */ bool IsRecognized(bool check_secure = true) const; + /** Check if the user is connected securely. + * @return True if the user is connected securely; otherwise, false. + */ + bool IsSecurelyConnected() const; + /** Check if the user is a services oper * @return true if they are an oper */ -- cgit