Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 12108:e9882c4c397f
MUC: Add method for getting the occupant id salt to allow reuse
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 05 Oct 2021 18:13:51 +0200 |
parent | 12010:f995d62044fa |
child | 12642:9061f9621330 |
comparison
equal
deleted
inserted
replaced
12107:8a5a9c1adb90 | 12108:e9882c4c397f |
---|---|
90 room_mt.get_presence_broadcast = presence_broadcast.get; | 90 room_mt.get_presence_broadcast = presence_broadcast.get; |
91 room_mt.set_presence_broadcast = presence_broadcast.set; | 91 room_mt.set_presence_broadcast = presence_broadcast.set; |
92 room_mt.get_valid_broadcast_roles = presence_broadcast.get_valid_broadcast_roles; | 92 room_mt.get_valid_broadcast_roles = presence_broadcast.get_valid_broadcast_roles; |
93 | 93 |
94 local occupant_id = module:require "muc/occupant_id"; | 94 local occupant_id = module:require "muc/occupant_id"; |
95 room_mt.get_salt = occupant_id.get_room_salt; | |
95 room_mt.get_occupant_id = occupant_id.get_occupant_id; | 96 room_mt.get_occupant_id = occupant_id.get_occupant_id; |
96 | 97 |
97 local jid_split = require "util.jid".split; | 98 local jid_split = require "util.jid".split; |
98 local jid_prep = require "util.jid".prep; | 99 local jid_prep = require "util.jid".prep; |
99 local jid_bare = require "util.jid".bare; | 100 local jid_bare = require "util.jid".bare; |