All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

Work around for VWR-24099

Review Request #338 - Created June 14, 2011 and updated

Alain Linden Reviewers
VWR-24099 stone.linden, jenn
None viewer-development
This is a work around to the bug.  If the user selects too many friends to lure with a teleport, he will be warned with a dialog rather than crashing on LLError.

 
Posted (June 15, 2011, 10:11 a.m.)

   

  
indra/newview/llviewermessage.cpp (Diff revision 1)
 
 
Assuming the suggested update to notifications.xml, would need to add:

args["LIMIT"] = 250

or equivalent code here.
Perhaps: "You attempted to make [OFFERS] teleport offers, which exceeds our limit of [LIMIT]."
  1. oh, should have been "...which exceeds the limit of [LIMIT]." ("the limit" instead of "our limit")
Posted (June 15, 2011, 11:15 a.m.)
Erica from #xd comments: 
18:01 < erica> jenn - does this need to be an error message? instead can we prevent them from
               *selecting* > [MAX] # residents and tping them? grey out the TP button, for
               example, if the number is over [max]

Passed along this suggestion to alain.
Posted (June 17, 2011, 4:11 p.m.)

   

  
indra/newview/llviewermessage.cpp (Diff revision 1)
 
 
Should your size check go inside of the 0 == option if block? Are there other possible values for option that might not make sense to cause the 250-limit-popup to occur?
Awkward phrasing, one of Jenn's suggestions looks good.
Posted (June 17, 2011, 4:30 p.m.)

   

  
indra/newview/llviewermessage.cpp (Diff revision 1)
 
 
No, it should go before.  There's no point in asking the sender if they want to offer teleport if the offer will surely fail.
Ship it!
Posted (June 17, 2011, 4:39 p.m.)
Well then, ship it!