Posted to tcl by Jack at Fri Jul 02 00:15:29 GMT 2021view raw
- proc join:BadNicks { nick uhost handle channel } {
- global badnickwords opchan
- set randy [expr {int(99999*rand())}]
- set numbers [regexp -all -inline -- {[0-9]+} $nick]
- if {[string length $numbers] >= 7} {
- putserv "SANICK $nick :Invitado-$randy"
- break
- }
- if{[regexp -- {[a-zA-Z]+[0-1][0-7][0-1][0-7]} $nick]} {
- putserv "SANICK $nick :Invitado-$randy"
- break
- }
- }