Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 6800:ad231285efdd
MUC: Remove duplicated import of muc/persistent (4caef6d53304 and this fixes #482)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 26 Aug 2015 20:21:12 +0200 |
| parents | cb84731b2dfd |
| children | 6cc7c9da29ed |
comparison
equal
deleted
inserted
replaced
| 6799:4fc6b0a090bb | 6800:ad231285efdd |
|---|---|
| 91 if affiliation ~= "owner" and is_admin(jid) then return nil, "modify", "not-acceptable"; end | 91 if affiliation ~= "owner" and is_admin(jid) then return nil, "modify", "not-acceptable"; end |
| 92 return _set_affiliation(self, actor, jid, affiliation, reason); | 92 return _set_affiliation(self, actor, jid, affiliation, reason); |
| 93 end | 93 end |
| 94 end | 94 end |
| 95 | 95 |
| 96 local persistent = module:require "muc/persistent"; | |
| 97 local persistent_rooms_storage = module:open_store("persistent"); | 96 local persistent_rooms_storage = module:open_store("persistent"); |
| 98 local persistent_rooms = module:open_store("persistent", "map"); | 97 local persistent_rooms = module:open_store("persistent", "map"); |
| 99 local room_configs = module:open_store("config"); | 98 local room_configs = module:open_store("config"); |
| 100 | 99 |
| 101 local function room_save(room, forced) | 100 local function room_save(room, forced) |
