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.

chars

Old posts that have not been replied to for several years.
Locked
K
KID

chars

Post by KID »

Hi


set perm {
"#aaaa"
"#bbbb"
"www.google.com"
}

In a TCL scripts, how do i do to my bot recognize #AAAA and #aaaa the same and WWW.GOOGLE.COM and www.google.com
etc

tks
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

1. Convert all strings to the same case
2. Use the -nocase option when comparing

Both are possible with the 'string' command. The -nocase option works with regexp as well. Check the tcl manual.
Locked