Software / code / prosody
Comparison
plugins/muc/mod_muc.lua @ 4261:b980a4173c1a
Merge 0.8->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 04 May 2011 23:13:50 +0100 |
| parent | 4260:403aba5e49d5 |
| child | 4370:be14f96290a4 |
comparison
equal
deleted
inserted
replaced
| 4259:36ac38fd9cbd | 4261:b980a4173c1a |
|---|---|
| 56 }; | 56 }; |
| 57 datamanager.store(node, muc_host, "config", data); | 57 datamanager.store(node, muc_host, "config", data); |
| 58 room._data.history = history; | 58 room._data.history = history; |
| 59 elseif forced then | 59 elseif forced then |
| 60 datamanager.store(node, muc_host, "config", nil); | 60 datamanager.store(node, muc_host, "config", nil); |
| 61 if not next(room._occupants) then -- Room empty | |
| 62 rooms[room.jid] = nil; | |
| 63 end | |
| 61 end | 64 end |
| 62 if forced then datamanager.store(nil, muc_host, "persistent", persistent_rooms); end | 65 if forced then datamanager.store(nil, muc_host, "persistent", persistent_rooms); end |
| 63 end | 66 end |
| 64 | 67 |
| 65 for jid in pairs(persistent_rooms) do | 68 for jid in pairs(persistent_rooms) do |