util/stanza.lua
changeset 8892 c4e430c69f88
parent 8648 06c73b010488
child 8893 3490bc478804
equal deleted inserted replaced
8891:cbcac5b9b7ce 8892:c4e430c69f88
   133 	self.last_add = nil;
   133 	self.last_add = nil;
   134 	return self;
   134 	return self;
   135 end
   135 end
   136 
   136 
   137 function stanza_mt:add_direct_child(child)
   137 function stanza_mt:add_direct_child(child)
   138 	if type(child) == "table" then
   138 	if is_stanza(child) then
   139 		t_insert(self.tags, child);
   139 		t_insert(self.tags, child);
   140 	end
   140 	end
   141 	t_insert(self, child);
   141 	t_insert(self, child);
   142 end
   142 end
   143 
   143