next up previous contents
Next: Parsing information Up: Overview Previous: GET method   Contents

Aliases through GET

Aldon made a nice suggestion of being able to replace the object number by their actual name. He also wrote the codes for it, which have been implemented.
There has to be a special mapping for those as many object will have words like: "big blue", or "blue box"; that is, with a space in there. In URLs, there can not be any space present. There were thoughts of filtering all names are replacing any space or weird character with underscore, for instance. This could be done in the future (see section 1.7.1).
The mapping is done through $kahuna.name2objnb where you can enter by hand all object with their names as long as it's a one-word name.
Since Player's name are one-word name, they are automatically considered by $kahuna:parse_get() and do not need to be included in $kahuna.name2objnb; yet, make sure their is no , $ or other weirdos in your name. If you have accent support in your MOO, just forget about it.


next up previous contents
Next: Parsing information Up: Overview Previous: GET method   Contents
Kr@nX 666 2004-01-04