Code: Select all
set chan "#blah"
proc autoreop {nick uhost hand chan deop deopd} {
if {botisop $chan == 0}
putserv "ChanServ op $chan $botnick"
}
From my understanding of the tcl-commands.doc botisop chan if returns 0, meaning not opped he should have chanserv op him in $chan.
I used the line proc autoreop {nick uhost hand chan deop deopd} { from WCC's services tcl.
Im thinking maybe Im missing something like an "else" command so If botisop == 1 then else then have him op himself.
I'd use WCC's services but it floods chanserv if its lagged on dal.net causing the bot to op himself like 5096859685 times when they come around. I want him to do it just once, once I figure out the proc I can bind it to a time say every hour or so. Binding shouldn't be a problem Its just the making him reop himself.