Posted to tcl by old at Tue Aug 13 20:19:41 GMT 2019view raw
- proc znc:request { nick host handle chan text } {
- global scriptCommandPrefix zncPasswordSecurityLevel zncPasswordLength zncnetworkname zncrealname zncquitmsg zncvhost zncDefaultUserModules zncDefaultNetworkModules usePreconfiguredNetworks bannednetworks
- set username [lindex $text 0]
- set email [lindex $text 1]
- set networkname [lindex $text 2]
- set server [lindex $text 3]
- set port [lindex $text 4]
- if {[regexp -nocase {^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$} $email]} {
- putserv "PRIVMSG $chan :The e-mail is invalid."
- return
- }