aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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);