Moduł:Protokół serwerowy

[ utwórz | historia | odśwież ]Dokumentacja
W tym module nie ma dokumentacji. Jeśli wiesz jak używać tego modułu, proszę, podaj odpowiednie informacje.
local obj = {}

obj.wersja = function(data)
	local parent = data:getParent();
	local argv = parent.args;
	local argc = table.getn(argv);
	if argc == 0
	then
		for i,value in ipairs(argv)
		do
			argc = argc+1;
			argv[i] = value;
		end
	end
	result = '| ' .. argv[3] .. '\n';
	if argc == 3 or argc > 3
	then
		result = '| ' .. argv[3] .. '\n';
		if argc > 3
		then
			for i=1,argv[2]-1
			do
				result = result .. '|-\n| ' .. argv[i+3] .. '\n';
			end
		end
	end
	return result:match "^%s*(.-)%s*$";
end

return obj;