From d8dd542bbaeaccfff10636895384dad44f021912 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 21 Sep 2011 22:50:00 +0000 Subject: [PATCH] Get rid of some blank lines in quake3-info. --- scripts/quake3-info.nse | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/quake3-info.nse b/scripts/quake3-info.nse index 1b6f8dfe6..dbdefb27a 100644 --- a/scripts/quake3-info.nse +++ b/scripts/quake3-info.nse @@ -10,10 +10,8 @@ Extracts information from a Quake3-like game server. -- PORT STATE SERVICE VERSION -- 27960/udp open quake3 Quake 3 dedicated server -- | quake3-info: --- | -- | PLAYERS: -- | 1. cyberix (frags: 0/20, ping: 4) --- | -- | BASIC OPTIONS: -- | capturelimit: 8 -- | dmflags: 0 @@ -26,7 +24,6 @@ Extracts information from a Quake3-like game server. -- | version: ioq3 1.36+svn1933-1/Ubuntu linux-x86_64 Apr 4 2011 -- | videoflags: 7 -- | voteflags: 767 --- | -- | OTHER OPTIONS: -- | bot_minplayers: 0 -- | elimination_roundtime: 120 @@ -161,7 +158,7 @@ local function formatplayers(players, fraglimit) end table.insert(printable, string.format("%d. %s (frags: %s, ping: %s)", i, name, frags, ping)) end - printable["name"] = "\nPLAYERS:" + printable["name"] = "PLAYERS:" return printable end @@ -226,7 +223,7 @@ action = function(host, port) local response = {} table.insert(response, formatplayers(players, fraglimit)) - table.insert(response, formatfields(basic, "\nBASIC OPTIONS:")) - table.insert(response, formatfields(other, "\nOTHER OPTIONS:")) + table.insert(response, formatfields(basic, "BASIC OPTIONS:")) + table.insert(response, formatfields(other, "OTHER OPTIONS:")) return stdnse.format_output(true, response) end