Made it wait two seconds before testing the connection. Hopefully it'll work.

This commit is contained in:
Izaya 2017-05-08 10:46:31 +10:00
parent 5339f4ffe0
commit 14a97e58b6

View File

@ -3,7 +3,10 @@ function ircb(h,p,n) -- host, port
s("IRC bridge connector", function()
local ip,h,p = component.proxy(component.list("internet")()),h,p
local c=ip.connect(h,p)
c.finishConnect()
local cT = computer.uptime
while computer.uptime() < cT + 2 do
C.yield()
end
if c.finishConnect() then
local ct=computer.uptime()
local function wl(s)