Merge pull request #229 from JoshTheEnder/patch-1

Support actions in irc client.
This commit is contained in:
Florian Nücke 2014-04-24 14:31:56 +02:00
commit d9d7ad217f

View File

@ -409,6 +409,13 @@ local result, reason = pcall(function()
line = tostring(reason)
end
end
elseif line:lower():sub(1,4) == "/me " then
if not target then
print("No default target set. Use /msg or /join to set one.")
line = ""
else
line = "PRIVMSG " .. target .. " :\001ACTION " .. line:sub(5) .. "\001"
end
elseif line:sub(1, 1) == "/" then
line = line:sub(2)
elseif line ~= "" then