util.stanza: Remove redundant check from :text now done in :add_direct_child
authorKim Alvefur <zash@zash.se>
Fri, 08 Jun 2018 17:44:44 +0200
changeset 8897 7273fb6af831
parent 8896 eb710675f7f8
child 8898 d00ea07de9a0
util.stanza: Remove redundant check from :text now done in :add_direct_child
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