mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
util.session: Add role management methods
This commit is contained in:
parent
1f4c6548dc
commit
7ebea134e6
1 changed files with 6 additions and 0 deletions
|
@ -57,10 +57,16 @@ local function set_send(session)
|
||||||
return session;
|
return session;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function set_role(session, role)
|
||||||
|
session.role = role;
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
new = new_session;
|
new = new_session;
|
||||||
|
|
||||||
set_id = set_id;
|
set_id = set_id;
|
||||||
set_logger = set_logger;
|
set_logger = set_logger;
|
||||||
set_conn = set_conn;
|
set_conn = set_conn;
|
||||||
set_send = set_send;
|
set_send = set_send;
|
||||||
|
set_role = set_role;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue