diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 565b642..0aeda72 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua | |||
@@ -151,6 +151,19 @@ end | |||
151 | local _M = moduleBegin('skang', 'David Seikel', 'Copyright 2014 David Seikel', '0.1', '2014-03-27 02:57:00') | 151 | local _M = moduleBegin('skang', 'David Seikel', 'Copyright 2014 David Seikel', '0.1', '2014-03-27 02:57:00') |
152 | print('Skang loaded, running under Lua version ' .. _VERSION) | 152 | print('Skang loaded, running under Lua version ' .. _VERSION) |
153 | 153 | ||
154 | |||
155 | csv2table = function (csv) | ||
156 | local result = {} | ||
157 | local i = 1 | ||
158 | |||
159 | for v in string.gmatch(csv, ' *([^,]+)') do | ||
160 | result[i] = v | ||
161 | i = i + 1 | ||
162 | end | ||
163 | return result | ||
164 | end | ||
165 | |||
166 | |||
154 | -- My clever boolean check, this is the third language I've written this in. B-) | 167 | -- My clever boolean check, this is the third language I've written this in. B-) |
155 | -- true 1 yes ack ok one positive absolutely affirmative 'ah ha' 'shit yeah' 'why not' | 168 | -- true 1 yes ack ok one positive absolutely affirmative 'ah ha' 'shit yeah' 'why not' |
156 | local isTrue = 't1aopswy' | 169 | local isTrue = 't1aopswy' |