Well, I'm not sure your idea would actually solve the problem (people who don't read the LFM message before asking for an invite aren't much more likely to read a whisper), but it wouldn't be difficult to implement:
Code:
local MESSAGE
local pattern = gsub(ERR_RAID_MEMBER_ADDED_S, "%%s", "(.+)")
local frame = CreateFrame("Frame")
frame:RegisterEvent("CHAT_MSG_SYSTEM")
frame:SetScript("OnEvent", function(self, event, message)
if not MESSAGE then return end
local whoJoined = strmatch(message, pattern)
if not whoJoined then return end
SendChatMessage(MESSAGE, "WHISPER", nil, whoJoined)
end)
SlashCmdList.MSG_ON_RAID_JOIN = function(message)
message = message and string.trim(message) or ""
if strlower(message) == "off" then
MESSAGE = nil
print(NORMAL_FONT_COLOR_CODE .. "MsgOnRaidJoin:|r Auto-message is now disabled.")
elseif strlen(message) > 0 then
MESSAGE = message
print(NORMAL_FONT_COLOR_CODE .. "MsgOnRaidJoin:|r Auto-message is now:")
print(" " .. MESSAGE)
elseif MESSAGE then
print(NORMAL_FONT_COLOR_CODE .. "MsgOnRaidJoin:|r Auto-message is currently:")
print(" " .. MESSAGE)
else
print(NORMAL_FONT_COLOR_CODE .. "MsgOnRaidJoin:|r Auto-message is currently disabled.")
end
end
SLASH_MSG_ON_RAID_JOIN1 = "/mrj"
Set the message:
/mrj Welcome to this evenings raid, I want to inform you that $[ITEM] from Archimonde are reserved.
Clear the message:
/mrj off
Get the current message state:
/mrj
The message is not saved between login sessions, and the default state is "off" until you set a message for the current session.
You can use
http://addon.bool.no/ to turn the above code into an addon.