From d7fc124342e525ba3ff264a11f72dd74e0aa058d Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Mon, 19 Jul 2010 10:55:22 +1000 Subject: [PATCH] Fixing send methods --- asyncoperations.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncoperations.lua b/asyncoperations.lua index f2dd79a..b0b5afb 100644 --- a/asyncoperations.lua +++ b/asyncoperations.lua @@ -29,14 +29,14 @@ end function meta:sendChat(target, msg) -- Split the message into segments if it includes newlines. for line in msg:gmatch("([^\r\n]+)") do - self:send("PRIVMSG %s :%s", verify(target, 3), msg) + self:send("PRIVMSG %s :%s", verify(target, 3), line) end end function meta:sendNotice(target, msg) -- Split the message into segments if it includes newlines. for line in msg:gmatch("([^\r\n]+)") do - self:send("NOTICE %s :%s", verify(target, 3), msg) + self:send("NOTICE %s :%s", verify(target, 3), line) end end