Originally Posted by Azul
Then use UninviteUnit(name) for party/raid and GuildUninvite(name) for guild.
|
That's already in place.
Code:
function Kicker_SlashCommandHandler(msg)
local source, leftover = Kicker_GetCmd(msg);
local name, reason = Kicker_GetCmd(leftover);
if (source == "guild") or (source == "g") then
GuildUninvite(name)
SendChatMessage(KICKMSG.. "guild. (".. reason..")", "WHISPER", nil, name);
SendChatMessage(name.. " has been /gkicked! (".. reason.. ")", "GUILD", nil, nil);
elseif (source == "party") or (source == "p") then
UninviteUnit(name)
SendChatMessage(KICKMSG.. "party. (".. reason..")", "WHISPER", nil, name);
SendChatMessage(name.. " kicked from party. (".. reason.. ")", "PARTY", nil, nil);
elseif (source == "raid") or (source == "r") then
UninviteUnit(name)
SendChatMessage(KICKMSG.. "raid. (".. reason..")", "WHISPER", nil, name);
SendChatMessage(name.. " kicked from raid. (".. reason.. ")", "RAID", nil, nil);
else
SendChatMessage("Kicker: You failed to kick anyone. You suck.")
end
end
I'm just looking to hook this into the game's already present commands.
/kicker guild <name> cause you suck ->
/gremove <name> cause you suck