Since one hour I am trying to find the correct if clause, I searched through the forum but didn't find a good solution.
My problem:
set name "BiLL"
set namelist "Martin Niklas BiLL Rudolf Dieter"
I want to look if $name is in $namelist (string tolower/-nocase prefered), but it always doesn't jump into my putserv. I tried a fewer other ways like string match ==, string compare ==, etc. but nothing worked. Anyone may help me?
if {[lsearch [string tolower *$name*] "[split $namelist]"] != -1} {
putserv "PRIVMSG $chan :Already in namelist!
return 0
}