plugins/muc: Fix use of incorrect event on occupant join
[prosody.git] / plugins / muc / history.lib.lua
index 1c14cf84ede12415518d7dc907c4016aaf66d416..4129e7faf4968309c731dca07f6647886bf600e5 100644 (file)
@@ -130,7 +130,7 @@ local function send_history(room, stanza)
 end
 
 -- Send history on join
-module:hook("muc-occupant-joined", function(event)
+module:hook("muc-occupant-session-new", function(event)
        send_history(event.room, event.stanza);
 end, 50); -- Before subject(20)