Hi i am looking for a .tcl script i can add to my eggdrop that will kick any users who enter a room that chanserv has not auto oped after say 10 seconds of the user entering the room
# what channel should it work ?
set thischan "#channel"
bind join - "$thischan *" check:op
proc check:op {nick uhost hand chan} {
if {![string equal -nocase $nick $::botnick]} {
utimer 10 [list check kick:nonop $nick $uhost $chan]
}
}
proc kick:nonop {nick uhost chan} {
if {![isop $nick $chan]} {
newchanban $chan *!*@[lindex [split $uhost @] 1] notoped "You do not hace ops in this channel" 10
}
}
this will ban the user after 10 seconds from joining your chan if the nick didn't gain ops. Basicly it checks if nick is oped after 10secs from joining.