wrong timeout string

This commit is contained in:
Axel Kittenberger 2010-12-01 14:20:44 +00:00
parent a62478fce2
commit 8716e71f6d

View File

@ -81,7 +81,7 @@ function writeIRC(...)
-- Gives it to the socket and sees how much it accepted
local s, err = ircSocket:send(ircWBuf)
-- If it cant the socket terminated.
if not s and err~="\n" then
if not s and err~="timeout" then
log("Error", "IRC connection failed: ", err)
terminate(-1)
end