Changeset

2177:530feb0e23ff

mod_mam_muc: Fix order of arguments for archive API
author Kim Alvefur <zash@zash.se>
date Sun, 22 May 2016 00:00:46 +0200
parents 2176:b76b062e77db
children 2178:24c9c0255235
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)