summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-08-01 19:23:48 +0100
committerSadie Powell <sadie@witchery.services>2021-08-01 19:23:48 +0100
commite7e8447fa39ced57743eab51e8e2835ddddd7001 (patch)
tree2bc8d31f575616e612c0d7e3898bd94bd9165b18 /include/users.h
parent561b205c4a3a125c12a7926ef18fa1eb822c387c (diff)
Deduplicate code for checking if a user is securely connected.
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h5
1 files changed, 5 insertions, 0 deletions
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
*/