# HG changeset patch # User Kim Alvefur # Date 1528472684 -7200 # Node ID 7273fb6af8312f41affe9e7615f9917caca77cf7 # Parent eb710675f7f8daf3132a8e2ce5df6415b3c5a82c util.stanza: Remove redundant check from :text now done in :add_direct_child diff -r eb710675f7f8 -r 7273fb6af831 util/stanza.lua --- a/util/stanza.lua Fri Jun 08 16:30:46 2018 +0100 +++ b/util/stanza.lua Fri Jun 08 17:44:44 2018 +0200 @@ -116,7 +116,6 @@ function stanza_mt:text(text) if text ~= nil and text ~= "" then - check_text(text, "text"); local last_add = self.last_add; (last_add and last_add[#last_add] or self):add_direct_child(text); end