This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Auto-voice only joiners with uppercase-initialled nicks

Old posts that have not been replied to for several years.
Locked
a
amazingwilf

Auto-voice only joiners with uppercase-initialled nicks

Post by amazingwilf »

Hi,

I'd like to run a script which gives voice to users where the first alpha character of their nick is uppercase. So, for example, John would get voice, as would ||John||, but john and |john|| wouldn't.

Any help with this much appreciated!

Thanks,

David
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

if {[regexp {([A-Za-z])+} "$nick" ble] && [string is upper -strict [string index $ble 0]]}
^^ a cumbersome way of doing it, I'm sure there must be some faster/better way... but it works
Elen sila lúmenn' omentielvo
a
amazingwilf

Post by amazingwilf »

Cumbersome or not, I'll give it a try. Thanks for the response :D
Locked