mod_scansion_record: Only record stanzas in the default namespace

This commit is contained in:
Kim Alvefur 2018-09-22 14:19:22 +02:00
parent ccd756b540
commit f6908980d0

View file

@ -24,12 +24,16 @@ local function record_stanza(stanza, session, verb)
end
local function record_stanza_in(stanza, session)
record_stanza(stanza, session, "sends")
if stanza.attr.xmlns == nil then
record_stanza(stanza, session, "sends")
end
return stanza;
end
local function record_stanza_out(stanza, session)
record_stanza(stanza, session, "receives")
if stanza.attr.xmlns == nil then
record_stanza(stanza, session, "receives");
end
return stanza;
end