From 33fa3914d4b04f85ec22b312ab578b1b73c6173a Mon Sep 17 00:00:00 2001 From: david Date: Thu, 16 Oct 2008 23:09:18 +0000 Subject: [PATCH] Mention that scripts matching a hostrule get only a host table, and script matching a portrule get both a host and a port table. I didn't find that documented anywhere else. --- docs/scripting.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/scripting.xml b/docs/scripting.xml index cea079746..96d5ce261 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -801,8 +801,10 @@ action refer to . The arguments, host and port, are Lua tables which contain information on the target against which the script is - executed. The following list describes each variable in the - host and port tables. + executed. If a script matched a hostrule, it gets only the + host table, and if it matched a portrule it + gets both host and port. + The following list describes each variable in these two tables.