have a prob with the Script.
First Line works fine $killnick has passed the authorized Connection.
But when a nick connect with Nick who not stand in the reqexp Line he do nothing.
I dont find the error hope somebody can help me.
Thx
Code: Select all
bind pubm -|- "*SIGNON*user:*" connect:chk
#killproc
proc connect:chk {nick uhost handle chan arg} {
set killnick [lindex $arg 2]
if { [regexp -nocase {SomeNick} $killnick] || [regexp -nocase {otherNiCk} $killnick] || [regexp -nocase {TheGuy} $killnick] || [regexp -nocase {On3Nick} $killnick] } {
putnow "PRIVMSG #chan : $killnick has passed the authorized Connection"
} else {
putserv "KILL $killnick : You are not authorized to connect to this server"
}
}