aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitdea262f569c57679977957ba575d99343cb4cd06 (patch)
tree119261987b8cdfaff06b42722f8202f6b86becc1 /plugins
parent79b2d37386a35b6f3184cb5fdaada94efa9a5a4d (diff)
downloadprosody-dea262f569c57679977957ba575d99343cb4cd06.tar.gz
prosody-dea262f569c57679977957ba575d99343cb4cd06.zip
plugins/muc/mod_muc: fix wrong event for persistence
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);