OC-MultICE/modules/applications/inshc.lua

9 lines
321 B
Lua
Raw Normal View History

2017-06-26 22:10:36 +10:00
function inshc(hA,pO,pW)
write("Address: ")
if hA then print(hA) else hA=readln() end
write("Port: ")
if pO then print(pO) else pO=readln() end
if pW then print("Password provided.") else write("Password (empty for no auth): ") readln("*") end
if pW == "" or pW == nil then nshc(pO,hA) else nshcs(pO,hA,pW) end
end