Merge branch 'master' of github.com:MightyPirates/OpenComputers

This commit is contained in:
Florian Nücke 2014-04-24 21:35:35 +02:00
commit d5bd34b76d

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