STORM-829 Viewer 2 does not parse /me in object Instant Messages
Review Request #71 - Created Jan. 5, 2011 and submitted
Jonathan Yap | Reviewers | ||
2.5 | viewer | ||
STORM-829 | |||
None | viewer-development |
The "/me" in the lsl code below would be displayed rather than being translated to a name: llInstantMessage(llGetOwner(),"/me Hello, Avatar!");
-
indra/newview/llviewermessage.cpp (Diff revision 1) -
Looks good to me, but just wondering why your checking for "/me " and "/me'" .
Posted (Jan. 6, 2011, 7 a.m.)
What about /Me, /ME or /me followed by another punctuation? Ie, "/me?", "/me!", etc... Just asking because these comparisions with just "/me " and "/me'" seem very limited, almost weird. More logical would be to not check anything at ALL - and either expand things, or not. What happens if you just set a flag saying "whatever is in this string, don't expand /me, /who, /whois, /kick etc" without at that point checking for one specific case (missing possibly many other variations).
Posted (Jan. 7, 2011, 9:36 a.m.)
I believe Aleric's comment is accurate. Logic testing for a prefix should be removed from the patch, and the flag should simply always be specified in this case. It is notable that the flag does trigger exactly the same test that is present in the patch (i.e. it's not case sensitive, it replicates prefix testing in several other places in the code base, etc). A more general fix might be to refactor all of the places that do prefix testing, but that wouldn't affect this specific issue. Again, the patch should be reduced to one line that simply adds the desired flag.
Other reviews