Diff

plugins/muc/history.lib.lua @ 6277:f2c9c36979b3

plugins/muc: Fix use of incorrect event on occupant join
author daurnimator <quae@daurnimator.com>
date Tue, 17 Jun 2014 15:18:43 -0400
parent 6240:641756a6a5f7
child 6535:0f940a7ba489
line wrap: on
line diff
--- a/plugins/muc/history.lib.lua	Wed Jun 11 17:54:23 2014 -0400
+++ b/plugins/muc/history.lib.lua	Tue Jun 17 15:18:43 2014 -0400
@@ -130,7 +130,7 @@
 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)