1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-02-03 22:00:20 +01:00

Fixing send methods

This commit is contained in:
Joshua Simmons 2010-07-19 10:55:22 +10:00
parent 46d8317f28
commit d7fc124342

View File

@ -29,14 +29,14 @@ end
function meta:sendChat(target, msg) function meta:sendChat(target, msg)
-- Split the message into segments if it includes newlines. -- Split the message into segments if it includes newlines.
for line in msg:gmatch("([^\r\n]+)") do 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
end end
function meta:sendNotice(target, msg) function meta:sendNotice(target, msg)
-- Split the message into segments if it includes newlines. -- Split the message into segments if it includes newlines.
for line in msg:gmatch("([^\r\n]+)") do 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
end end