aboutsummaryrefslogtreecommitdiffstats
path: root/util/session.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-06-15 11:37:09 +0100
committerMatthew Wild <mwild1@gmail.com>2022-06-15 11:37:09 +0100
commit7ebea134e6fd45a524b8a924be04c3b51f8f7799 (patch)
tree13a0aa09f1e3413f83d28a59edeb41ed67925c8f /util/session.lua
parent1f4c6548dcb538d794dab42f1bd8491a720ae5b9 (diff)
downloadprosody-7ebea134e6fd45a524b8a924be04c3b51f8f7799.tar.gz
prosody-7ebea134e6fd45a524b8a924be04c3b51f8f7799.zip
util.session: Add role management methods
Diffstat (limited to 'util/session.lua')
-rw-r--r--util/session.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/session.lua b/util/session.lua
index 25b22faf..d908476a 100644
--- a/util/session.lua
+++ b/util/session.lua
@@ -57,10 +57,16 @@ local function set_send(session)
return session;
end
+local function set_role(session, role)
+ session.role = role;
+end
+
return {
new = new_session;
+
set_id = set_id;
set_logger = set_logger;
set_conn = set_conn;
set_send = set_send;
+ set_role = set_role;
}