servers/jabberd14.lua

function testers.jabberd14()
	if test(q_invalid_xml, literal ">Invalid XML<")
	or (test(q_invalid_xml, literal ">syntax error</text>")
	    and not test(q_invalid_host, literal " id='")) then
		server_name = "jabberd14";
		
		if test(q_invalid_xml, "^<stream:error>") then
			server_version = "1.4.x";
		elseif test(q_empty_message_tag, literal "<improper-addressing ") then
			server_version = "1.6.x"
		elseif test(q_empty_message_tag, literal "<bad-format ") then
			server_comment "Using jadc2s connection manager, jabberd14 version unknown";
		end
	end
end