Ex: !vlaid test_roger_email@testmail.com
But i cant get it to work.
Thanks for your help !
Code: Select all
proc test { nick uhost hand chan arg } {
set text [lindex $arg 0]
set check [lindex $arg 2]
set test "roger john frank"
foreach x $test {
if {[regexp -nocase {[-_]$x[_-]} $text] != 0} {
putserv "PRIVMSG $chan :$text is a valid email"
} else {
putserv "PRIVMSG $chan :$text is invalid"
}
}
}