/client/verb/sendalts2()
var/alt = input(usr,"Alts","Alts",null) as key|null
usr << "[alt]"
Problem description:
Hi, I'm having trouble with the "as key" verb argument. I was toying around with it in the hopes I could use it as a means to check somebody's Alt usernames to prevent multi-keying.
The trouble is, I cannot get then "as key" argument to do much of anything. The above code shows a list of usr's usernames. However on selecting one, the server doesn't seem to do anything with that data. I've also tried a another bit of code (basically a big elseif chain trying to determine the data-type) but that aso returns nothing at all.
Perhaps it's something to do with security? I guess such a feature could be misused.
I was hoping somebody could provide -any- example of "as key" being used. I'd like to learn how it's actually used.
Thanks for your time.
You might want to file an official bug report for it in the bug forum.