From 26e6e269d1d776a8e91f0d9460b38ef146584801 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 4 Sep 2017 22:49:33 +0200 Subject: [PATCH] chg: 'script run 14araw' got some local functions now --- client/scripts/14araw.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/client/scripts/14araw.lua b/client/scripts/14araw.lua index a2e6ff53f..9b1202ca7 100644 --- a/client/scripts/14araw.lua +++ b/client/scripts/14araw.lua @@ -4,8 +4,6 @@ local lib14a = require('read14a') example = "script run 14araw -x 6000F57b" author = "Martin Holst Swende" - - desc = [[ This is a script to allow raw 1444a commands to be sent and received. @@ -50,26 +48,23 @@ local DEBUG = false -- the debug flag --- -- A debug printout-function -function dbg(args) +local function dbg(args) if DEBUG then print("###", args) end end --- -- This is only meant to be used when errors occur -function oops(err) +local function oops(err) print("ERROR: ",err) end - - --- -- Usage help -function help() +local function help() print(desc) print("Example usage") print(example) end - --- -- The main entry point function main(args)