1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-27 04:18:05 +11:00

made the parsing not die with no input

This commit is contained in:
Izaya 2018-04-17 01:16:03 +10:00
parent c886e27774
commit 75b5d832ca

View File

@ -16,7 +16,9 @@ local katimer
function start(faddr) function start(faddr)
if listener then return end if listener then return end
local host,nport = faddr:match("(.+):(%d+)") if faddr then
local host,nport = faddr:match("(.+):(%d+)")
end
local iaddr,port = host or faddr or "shadowkat.net", tonumber(nport) or 4096 local iaddr,port = host or faddr or "shadowkat.net", tonumber(nport) or 4096
socket = internet.connect(iaddr,port) socket = internet.connect(iaddr,port)
print("Connecting to "..iaddr..":"..tostring(port).."...") print("Connecting to "..iaddr..":"..tostring(port).."...")