Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 7367:2aef5e8b69e9
MUC: Move room deserialization to muc.lib
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 18 Apr 2016 19:26:26 +0200 |
parent | 7361:3409773ca19a |
child | 7370:0ebc7ff1fff5 |
comparison
equal
deleted
inserted
replaced
7366:eb3928903009 | 7367:2aef5e8b69e9 |
---|---|
128 | 128 |
129 local function restore_room(jid) | 129 local function restore_room(jid) |
130 local node = jid_split(jid); | 130 local node = jid_split(jid); |
131 local data = room_configs:get(node); | 131 local data = room_configs:get(node); |
132 if data then | 132 if data then |
133 local room = muclib.new_room(jid); | 133 local room = muclib.restore_room(data); |
134 room._data = data._data; | |
135 room._affiliations = data._affiliations; | |
136 track_room(room); | 134 track_room(room); |
137 return room; | 135 return room; |
138 end | 136 end |
139 end | 137 end |
140 | 138 |