From 8716e71f6d39dc51d4e950edd6a15f2a3bf2ab5d Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Wed, 1 Dec 2010 14:20:44 +0000 Subject: [PATCH] wrong timeout string --- examples/lsayirc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lsayirc.lua b/examples/lsayirc.lua index 28cce35..b719854 100644 --- a/examples/lsayirc.lua +++ b/examples/lsayirc.lua @@ -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