View Single Post
05-25-10, 09:14 AM   #7
Sinaris
A Wyrmkin Dreamwalker
 
Sinaris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 55
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
          KRAHLog_raidmembers = {}
       end
end

SLASH_RAIDLOG1, SLASH_RAIDLOG2 = '/rlog', '/raidlog';
SlashCmdList["RAIDLOG"] = handler;
Mhm, but its not working. I am cunfused about LUA, sorry (
  Reply With Quote