Quantcast

PlayerManager.Invite will now fail if trying to invite when in LFG.

F16Gaming [08-29-12 - 17:35]
PlayerManager.Invite will now fail if trying to invite when in LFG.
Filename
PlayerManager.lua
diff --git a/PlayerManager.lua b/PlayerManager.lua
index bfcede0..a5db8ee 100644
--- a/PlayerManager.lua
+++ b/PlayerManager.lua
@@ -629,6 +629,8 @@ function PM:Invite(player, sender, pID)
 		return false, "PM_INVITE_INGROUP", {player.Info.Name}
 	elseif GT:IsGroupFull() then
 		return false, "PM_INVITE_FULL"
+	elseif GT:IsLFGGroup() then
+		return false, "PM_INVITE_LFG"
 	end
 	if GT:IsGroupLeader() or GT:IsRaidLeaderOrAssistant() or not GT:IsGroup() then
 		if self.Invites[player.Info.Name] then