mod_mam_muc: Fix order of arguments for archive API
authorKim Alvefur <zash@zash.se>
Sun, 22 May 2016 00:00:46 +0200
changeset 2181 530feb0e23ff
parent 2180 b76b062e77db
child 2182 24c9c0255235
mod_mam_muc: Fix order of arguments for archive API
mod_mam_muc/mod_mam_muc.lua
--- a/mod_mam_muc/mod_mam_muc.lua	Wed May 11 23:13:03 2016 +0200
+++ b/mod_mam_muc/mod_mam_muc.lua	Sun May 22 00:00:46 2016 +0200
@@ -366,7 +366,7 @@
 	if stanza.attr.type then
 		with = with .. "<" .. stanza.attr.type
 	end
-	archive:append(room, nil, time_now(), with, stanza);
+	archive:append(room, stanza, nil, time_now(), with);
 end
 
 module:hook("muc-broadcast-message", function (event)