Download
(815 b)
Download
Updated: 07-13-10 11:14 AM
Pictures
File Info
Updated:07-13-10 11:14 AM
Created:07-13-10 11:09 AM
Downloads:1,831
Favorites:2
MD5:

Acceptance

Version: 1.02
by: Devourx [More]

Acceptance

Auto-accept group invites.

Post A Reply Comment Options
Unread 07-13-10, 12:54 PM  
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 484
File comments: 23
Uploads: 4
Oh, I really should apologize. Your addon Angrycat is actually quite useful and refreshingly simple.

I juz b trolin'.
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
Report comment to moderator  
Reply With Quote
Unread 07-13-10, 12:27 PM  
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 484
File comments: 23
Uploads: 4
When the below is the entirety of your addon during a beta key giveaway to addon authors, something up.

Code:
local popups = {}
local _G = getfenv(0)
for i=1,STATICPOPUP_NUMDIALOGS do
	table.insert(popups, _G["StaticPopup"..i])
end

local function IsFriend(name)
	for i=1,GetNumFriends() do
		if GetFriendInfo(i) == name then return true end
	end

	if not IsInGuild() then return end

	for i=1, GetNumGuildMembers() do
		if GetGuildRosterInfo(i) == name then return true end
	end
end


local function Acceptance_OnEvent()
	local inviter = arg1
	if IsFriend(inviter) then
		AcceptGroup()
		for _,f in ipairs(popups) do
			if f:IsVisible() and f.which == "PARTY_INVITE" then f:Hide() end
		end
	else SendWho("n-\"".. inviter.. "\"") end
end


Acceptance = CreateFrame("Frame")
Acceptance:SetScript("OnEvent", Acceptance_OnEvent)
Acceptance:RegisterEvent("PARTY_INVITE_REQUEST")
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
Report comment to moderator  
Reply With Quote
Unread 07-13-10, 11:41 AM  
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 837
File comments: 374
Uploads: 13
sorry i LOLed hard when i read what this "mod" does LOL!!!
__________________
"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: