From 7d98cf189170d623076662599e83e586d90d0bf3 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Fri, 22 Nov 2013 18:41:34 -0500 Subject: [PATCH] [LLIMMgr/LLIMPanel] Woops, only allow invites to Adhocs!! --- indra/newview/llimpanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 3aedaa8b6..ed0fff564 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -874,7 +874,7 @@ BOOL LLFloaterIMPanel::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, } // handle case for dropping calling cards (and folders of calling cards) onto invitation panel for invites - else + else if (isInviteAllowed()) { *accept = ACCEPT_NO; @@ -944,7 +944,7 @@ BOOL LLFloaterIMPanel::dropCategory(LLInventoryCategory* category, BOOL drop) bool LLFloaterIMPanel::isInviteAllowed() const { - return mSessionType != P2P_SESSION; + return mSessionType == ADHOC_SESSION; } void LLFloaterIMPanel::removeDynamics(LLComboBox* flyout)