3 config = require "config"
4 connection = require "connection"
17 function string:split(sep)
18 local sep, fields = sep or ":", {}
19 local pattern = string.format("([^%s]+)", sep)
20 self:gsub(pattern, function(c) fields[#fields+1] = c end)
28 status, res = pcall(connection.auth,vals[1],vals[2],vals[3])
30 if res and res ~= "" then
31 io.write("OK user="..res.."\n")