How can i check if a username contains some letters


Greetings
Jeroen
Code: Select all
proc { ... } {
if { ([string first jeroen $nick] !=-1) } { ... }
}
(Taken from: http://johoho.eggheads.org/eggdrop/other/guide2tcl.html)string first string1 string2
Search string2 for a sequence of characters that exactly match the
characters in string1. If found, return the index of the first character
in the first such match within string2. If not found, return -1.