# HG changeset patch # User Matthew Wild # Date 1655289429 -3600 # Node ID 999b1c59af6f186965b28f2a9f2ac94d9c906373 # Parent a47af78a9347c2e3796c107ad1cdbdc346adb72f util.session: Add role management methods diff -r a47af78a9347 -r 999b1c59af6f util/session.lua --- a/util/session.lua Thu Aug 18 15:43:16 2022 +0100 +++ b/util/session.lua Wed Jun 15 11:37:09 2022 +0100 @@ -57,10 +57,16 @@ 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; }