aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 4a0a9ce8..4f91d5e9 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -101,6 +101,10 @@ function stanza_mt:body(text, attr)
return self:tag("body", attr):text(text);
end
+function stanza_mt:text_tag(name, text, attr, namespaces)
+ return self:tag(name, attr, namespaces):text(text):up();
+end
+
function stanza_mt:tag(name, attr, namespaces)
local s = new_stanza(name, attr, namespaces);
local last_add = self.last_add;