changeset 10446 | 22db763c510c |
parent 10120 | 4807535b8673 |
child 10447 | f28718f46196 |
--- a/util/stanza.lua Sun Nov 24 04:46:36 2019 +0100 +++ b/util/stanza.lua Mon Nov 25 20:44:05 2019 +0100 @@ -434,6 +434,9 @@ end local function reply(orig) + if not is_stanza(orig) then + error("bad argument to reply: expected stanza, got "..type(orig)); + end return new_stanza(orig.name, orig.attr and { to = orig.attr.from,