Permalink
Browse files

Fixed invite bug. Added check for "IsInRaid"

  • Loading branch information...
1 parent 75d032d commit 9e9c789acb3220c21615842a1b55806ae91c7cef @PProvost committed Mar 21, 2010
Showing with 8 additions and 1 deletion.
  1. +1 −1 EventDispatcher.lua
  2. +7 −0 ManagePage.lua
View
@@ -28,4 +28,4 @@ ns.RegisterEvents, ns.UnregisterEvents = ns.RegisterEvent, ns.UnregisterEvent
-- Hook in AceTimer for scheduling
LibStub("AceTimer-3.0"):Embed(f)
-ns.ScheduleEvent = f.ScheduleEvent
+ns.ScheduleTimer = f.ScheduleTimer
View
@@ -67,8 +67,15 @@ local function GetSelectedRaidMembers()
return result
end
+local function IsInRaid(name)
+ for i=1,GetNumRaidMembers() do
+ if GetRaidRosterInfo(i) == name then return true end
+ end
+end
+
local function DoInviteUnit(name)
if UnitIsUnit(name, "player") then return end
+ if IsInRaid(name) then return end
if IsGuildMember(name) then
if IsGuildMemberOnline(name) then
InviteUnit(name)

0 comments on commit 9e9c789

Please sign in to comment.