Skip to content
Snippets Groups Projects
Commit 06009e9b authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SL-10400 - get group limits from SimulatorFeatures

parent d1f5e87a
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
#include "llrecentpeople.h" #include "llrecentpeople.h"
#include "llviewercontrol.h" // for gSavedSettings #include "llviewercontrol.h" // for gSavedSettings
#include "llviewermenu.h" // for gMenuHolder #include "llviewermenu.h" // for gMenuHolder
#include "llviewerregion.h"
#include "llvoiceclient.h" #include "llvoiceclient.h"
#include "llworld.h" #include "llworld.h"
#include "llspeakers.h" #include "llspeakers.h"
...@@ -1165,8 +1166,25 @@ void LLPanelPeople::onFilterEdit(const std::string& search_string) ...@@ -1165,8 +1166,25 @@ void LLPanelPeople::onFilterEdit(const std::string& search_string)
void LLPanelPeople::onGroupLimitInfo() void LLPanelPeople::onGroupLimitInfo()
{ {
LLSD args; LLSD args;
args["MAX_BASIC"] = BASE_MAX_AGENT_GROUPS;
args["MAX_PREMIUM"] = PREMIUM_MAX_AGENT_GROUPS; S32 max_basic = BASE_MAX_AGENT_GROUPS;
S32 max_premium = PREMIUM_MAX_AGENT_GROUPS;
if (gAgent.getRegion())
{
LLSD features;
gAgent.getRegion()->getSimulatorFeatures(features);
if (features.has("MaxAgentGroupsBasic"))
{
max_basic = features["MaxAgentGroupsBasic"].asInteger();
}
if (features.has("MaxAgentGroupsPremium"))
{
max_premium = features["MaxAgentGroupsPremium"].asInteger();
}
}
args["MAX_BASIC"] = max_basic;
args["MAX_PREMIUM"] = max_premium;
LLNotificationsUtil::add("GroupLimitInfo", args); LLNotificationsUtil::add("GroupLimitInfo", args);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment