mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 06:37:37 +03:00
mod_scansion_record: Only record stanzas in the default namespace
This commit is contained in:
parent
ccd756b540
commit
f6908980d0
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue