Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 6239:a791dd781238
plugins/muc/mod_muc: Remove support for `host_session.muc`
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Tue, 29 Apr 2014 14:50:13 -0400 |
parent | 6238:b2b523d21891 |
child | 6240:641756a6a5f7 |
comparison
equal
deleted
inserted
replaced
6238:b2b523d21891 | 6239:a791dd781238 |
---|---|
203 end | 203 end |
204 return room[method](room, origin, stanza); | 204 return room[method](room, origin, stanza); |
205 end, -2) | 205 end, -2) |
206 end | 206 end |
207 | 207 |
208 hosts[module:get_host()].muc = { rooms = rooms }; | |
209 | |
210 local saved = false; | 208 local saved = false; |
211 module.save = function() | 209 module.save = function() |
212 saved = true; | 210 saved = true; |
213 return {rooms = rooms}; | 211 return {rooms = rooms}; |
214 end | 212 end |
218 room._jid_nick = oldroom._jid_nick; | 216 room._jid_nick = oldroom._jid_nick; |
219 room._occupants = oldroom._occupants; | 217 room._occupants = oldroom._occupants; |
220 room._data = oldroom._data; | 218 room._data = oldroom._data; |
221 room._affiliations = oldroom._affiliations; | 219 room._affiliations = oldroom._affiliations; |
222 end | 220 end |
223 hosts[module:get_host()].muc = { rooms = rooms }; | |
224 end | 221 end |
225 | 222 |
226 function shutdown_component() | 223 function shutdown_component() |
227 if not saved then | 224 if not saved then |
228 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}) | 225 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}) |