From 145aa5b3eb35a5f6743cf0ebb826eda039fda70a Mon Sep 17 00:00:00 2001 From: Jakob Ovrum Date: Mon, 19 Jul 2010 07:24:19 +0900 Subject: [PATCH] Fixed some merge bugs --- asyncoperations.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asyncoperations.lua b/asyncoperations.lua index 2b51224..f2dd79a 100644 --- a/asyncoperations.lua +++ b/asyncoperations.lua @@ -19,7 +19,7 @@ function meta:send(fmt, ...) end local function verify(str, errLevel) - if str:find("^:") or find("%s%z") then + if str:find("^:") or str:find("%s%z") then error(("malformed parameter '%s' to irc command"):format(str), errLevel) end @@ -28,14 +28,14 @@ end function meta:sendChat(target, msg) -- Split the message into segments if it includes newlines. - for line in msg:gmatch("([^\r\n]+)") + for line in msg:gmatch("([^\r\n]+)") do self:send("PRIVMSG %s :%s", verify(target, 3), msg) end end function meta:sendNotice(target, msg) -- Split the message into segments if it includes newlines. - for line in msg:gmatch("([^\r\n]+)") + for line in msg:gmatch("([^\r\n]+)") do self:send("NOTICE %s :%s", verify(target, 3), msg) end end