<SOLVED>how to block "naughty names" from gl

Hi all-

Just about to launch my wee little math game for kids, however it allows submitting of high score to a global list- realizing people will be happily putting in some really bad things, lol. Especially since it’s for kids, I’m sure people will think of bad stuff, i’m sure…oi.

So, I’ve started by limiting the input name to 3 characters, just like the old school arcade scores anyway, and setting up list of “blocked names”…

…but I have now realized I need to also test all the possible upper case and lower case combos…which makes it MUCH more difficult.

Is there a better way of doing this? Or a good way of forcing the input name to all caps, to circumvent this?

Thanks!

Hello,

I believe there’s a profanity filter script on the wiki that makes use of Regex. You might take a look at it and see what you think,

Best wishes,

-Lincoln Green

Thanks- lol, that’s a funny list on the wiki :stuck_out_tongue: Helpful though!

I don’t think it will catch all of it…but a lot.

So, how would i co about forcing all caps/all lower caps then? There must be a “somevariable.ToLowerCaps()” type function, yes?

thanks!

Just use ToUpper or ToLower.

–Eric

err…well…:smile: Thanks eric!

FlamingHairball- thanks also for this bit of knowledge, I’m sure that will come in handy for chat/etc too :slight_smile: