Fixed some merge bugs

This commit is contained in:
Jakob Ovrum 2010-07-19 07:24:19 +09:00
parent 2fe692f2ae
commit 145aa5b3eb
1 changed files with 3 additions and 3 deletions

View File

@ -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