# HG changeset patch # User Kim Alvefur # Date 1415457919 -3600 # Node ID fff2858c554f6929310be78777bc85de8d57fdcf # Parent a104a159697d4282d26f6989d3930c79a73b8f09 mod_mam_muc: Remove parsing of 'with' field in MAM form, we currently ignore it anyways diff -r a104a159697d -r fff2858c554f mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Wed Nov 05 12:12:49 2014 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Sat Nov 08 15:45:19 2014 +0100 @@ -122,6 +122,7 @@ end); end +-- Note: We ignore the 'with' field as this is internally used for stanza types local query_form = dataform { { name = "FORM_TYPE"; type = "hidden"; value = xmlns_mam; }; { name = "with"; type = "jid-single"; }; @@ -159,7 +160,7 @@ local qid = query.attr.queryid; -- Search query parameters - local qwith, qstart, qend; + local qstart, qend; local form = query:get_child("x", "jabber:x:data"); if form then local err; @@ -167,8 +168,7 @@ if err then return origin.send(st.error_reply(stanza, "modify", "bad-request", select(2, next(err)))) end - qwith, qstart, qend = form["with"], form["start"], form["end"]; - qwith = qwith and jid_bare(qwith); -- dataforms does jidprep + qstart, qend = form["start"], form["end"]; end if qstart or qend then -- Validate timestamps