I want match search from a list. I have dir names example:
blabla.aa
cc.oiwerwer
asfd.Dd.asoiwer
and I want to check if it is in the list (upper case should be ignored).
bind pub "-|-" !tt tt
proc tt {nick host handle channel arg} {
set name [lindex [split $arg] 0]
set groups {aa BB Cc DD Ee Ff gg hh}
if {[lsearch -inline $groups $name] != -1} {
putnow "PRIVMSG $channel :match name $name"
}
}
No matter what I write, it always says match...
Regards