mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-10 10:00:28 +01:00
Really helps when you run code before comitting
This commit is contained in:
parent
6327d84a84
commit
ea788bb757
@ -28,14 +28,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]+)")
|
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), msg)
|
||||||
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]+)")
|
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), msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user