Page 1 of 1

Serverside getUserByName ignoring case

Posted: 13 Apr 2009, 23:11
by turtlesoup
Hey,

can you add a getUserByName method parameter to ignore upper/lower case of the name? Would be very helpful.

Thanks!

Posted: 17 May 2009, 00:37
by BigFIsh
I'm looking for something like this too.

I created a custom private message, where the user can type in

\pm [name] message

the [name] parameter is sent to the server, then I check if that user is online by zone.getUserByName(name).

players may type in a name incorrectly, i.e. JacK instead of Jack.

So, if Jack was actually online. The user sent a message to JacK, he will receive a response saying "sorry, user doesn't exist or is offline".

Posted: 25 Oct 2009, 12:00
by Flappi282
The problem with this is hard to explain:
Eg. User say Lapo logs on
Someone wants the name of Lapo, but it is taken, so they use lapo or LAPO.
You could build a login extension which changes the username to lowercase, and Bigfish, you could add to your extension, making all usernames lower case.
You could do this using aString = aString.toLowerCase()