Code: Select all
set bind(opme) "1"
proc opme:pub {nick uhost hand chan arg} {
global bind
if {[botisop $chan]} {
if {$bind(opme)} {
if {![isop $nick $chan]} {
putallbots bindopme
pushmode $chan +o $nick
}
} else {
set bind(opme) 1
}
}
}
bind bot - bindopme bind:opme
proc bind:opme {hand idx arg} {
global bind
set bind(opme) "0"
}