Difference between revisions of "Category:LSL Username"
Jump to navigation
Jump to search
(move old code here since it is not as useful (except for informational purposes)) |
(the trailing space gets consumed as part of the resident last name or seperately, the null strings get discarded so it all collapses. Stream lines things.) |
||
Line 15: | Line 15: | ||
<lsl>string LegacyToUsername(string legacy) | <lsl>string LegacyToUsername(string legacy) | ||
{ | { | ||
return llDumpList2String(llParseString2List(llToLower(legacy)+" ", [" resident ", " "],[]), "."); | |||
}</lsl> | }</lsl> | ||
See {{LSLGC|Avatar/Name}} for more details. | See {{LSLGC|Avatar/Name}} for more details. |
Revision as of 10:11, 19 June 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
A user's username depends upon what type of account it is:
Type | Format |
---|---|
Legacy | "firstname.lastname" |
Modern | "firstname" |
<lsl>string LegacyToUsername(string legacy) {
return llDumpList2String(llParseString2List(llToLower(legacy)+" ", [" resident ", " "],[]), ".");
}</lsl>
See Avatar/Name for more details.
Pages in category "LSL Username"
The following 3 pages are in this category, out of 3 total.