Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 6276:9290a2906feb
plugins/muc/mod_muc: fix wrong event for persistence
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Wed, 11 Jun 2014 17:54:23 -0400 |
| parents | 4569b8cbd269 |
| children | 93fb28851d9e |
comparison
equal
deleted
inserted
replaced
| 6275:d891fa02e5e5 | 6276:9290a2906feb |
|---|---|
| 89 end | 89 end |
| 90 if forced then persistent_rooms_storage:set(nil, persistent_rooms); end | 90 if forced then persistent_rooms_storage:set(nil, persistent_rooms); end |
| 91 end | 91 end |
| 92 | 92 |
| 93 -- When room is created, over-ride 'save' method | 93 -- When room is created, over-ride 'save' method |
| 94 module:hook("muc-occupant-pre-create", function(event) | 94 module:hook("muc-room-pre-create", function(event) |
| 95 event.room.save = room_save; | 95 event.room.save = room_save; |
| 96 end, 1000); | 96 end, 1000); |
| 97 | 97 |
| 98 -- Automatically destroy empty non-persistent rooms | 98 -- Automatically destroy empty non-persistent rooms |
| 99 module:hook("muc-occupant-left",function(event) | 99 module:hook("muc-occupant-left",function(event) |
