Fix VWR-24099: warn user when trying to send too many teleport offers at one time.
parent
12d9d1d3ef
commit
6f1fabf0e0
|
|
@ -6266,6 +6266,15 @@ void send_group_notice(const LLUUID& group_id,
|
|||
|
||||
bool handle_lure_callback(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
if(notification["payload"]["ids"].size() > 250)
|
||||
{
|
||||
// More than 250 targets will overload the message.
|
||||
LLSD args;
|
||||
args["OFFERS"] = notification["payload"]["ids"].size();
|
||||
LLNotificationsUtil::add("TooManyTeleportOffers", args);
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string text = response["message"].asString();
|
||||
LLSLURL slurl;
|
||||
LLAgentUI::buildSLURL(slurl);
|
||||
|
|
|
|||
|
|
@ -3696,6 +3696,19 @@ Join me in [REGION]
|
|||
</form>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="TooManyTeleportOffers"
|
||||
type="alertmodal">
|
||||
You attempted to make [OFFERS] teleport offers;
|
||||
250 are the most that can be done at one time
|
||||
<tag>group</tag>
|
||||
<tag>fail</tag>
|
||||
<usetemplate
|
||||
name="okbutton"
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="OfferTeleportFromGod"
|
||||
|
|
|
|||
Loading…
Reference in New Issue