aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-06-11 17:54:23 -0400
committerdaurnimator <quae@daurnimator.com>2014-06-11 17:54:23 -0400
commit75d78ae9e40c0d0b972842d30a35387f161823d5 (patch)
tree119261987b8cdfaff06b42722f8202f6b86becc1 /plugins/muc
parentbe47daf8e124b7f96a7081d9873a277bf1403858 (diff)
downloadprosody-75d78ae9e40c0d0b972842d30a35387f161823d5.tar.gz
prosody-75d78ae9e40c0d0b972842d30a35387f161823d5.zip
plugins/muc/mod_muc: fix wrong event for persistence
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 628c72b3..4cd20245 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -91,7 +91,7 @@ do -- Persistent rooms
end
-- When room is created, over-ride 'save' method
- module:hook("muc-occupant-pre-create", function(event)
+ module:hook("muc-room-pre-create", function(event)
event.room.save = room_save;
end, 1000);