aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 6453be48..2691cb0b 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -137,8 +137,11 @@ end
function stanza_mt:add_direct_child(child)
if is_stanza(child) then
t_insert(self.tags, child);
+ t_insert(self, child);
+ else
+ check_text(child, "text");
+ t_insert(self, child);
end
- t_insert(self, child);
end
function stanza_mt:add_child(child)