Also, looking at your code I think you may want to change things slightly there:
Code:
local function handler(msg)
msg = string.lower(msg);
local args = {};
for word in string.gmatch(msg,"[^%s]+") do
table.insert(args,word);
end
if ( args[1] == "delete" ) then
-- delete stuff here
end
end
SLASH_RAIDLOG1, SLASH_RAIDLOG2 = '/rlog', '/raidlog';
SlashCmdList["RAIDLOG"] = handler;