Code: Select all
if {$avchan == "" && [botisop $chan]} {
Code: Select all
if {$avchan == "" && [botisop $chan] && [matchattr $hand v|v $chan]} {
Code: Select all
if {$i == $chan && [botisop $chan]} {
Code: Select all
if {$i == $chan && [botisop $chan] && [matchattr $hand v|v $chan]} {
Code: Select all
bind mode "% -v" bitch:voice
proc bitch:voice {nick uhost hand chan victim} {
if {[channel get $chan +bitchvoice]} return 1
}
Code: Select all
bind join - * sv:join
proc sv:join {nick host hand chan} {
global sv
if {[isbotnick $nick] || ![botisop $chan]} return
if {[lsearch -nocase $chan $sv(avchan)] == -1} return
if {![isvoice $nick $chan]} {
utimer [rand [expr $sv(maxdelay) + 1]] [list pushmode $chan +v $nick]
}
}
Code: Select all
"Error trying to set +bitchvoice for #testing123, invalid mode."
Code: Select all
proc automode:join { nick uhost handle chan } {
global sv
if {[channel get $chan "op"] && [isop $::botnick $chan]} {
pushmode $chan +o $nick
} elseif {[channel get $chan "voice"] && [isop $::botnick $chan]} {
utimer [rand [expr $sv(maxdelay) + 1]] [list push $chan $nick]
} else {
return 0
}
}
proc push {chan nick} {
if {![botisop $chan]} return
if {[isvoice $nick $chan]} return
pushmode $chan +v $nick
}
Code: Select all
set sv(maxdelay) 10
proc automode:join { nick uhost handle chan } {
global sv
if {[channel get $chan "op"] && [isop $::botnick $chan]} {
pushmode $chan +o $nick
} elseif {[channel get $chan "voice"] && [isop $::botnick $chan]} {
utimer [rand [expr $sv(maxdelay) + 1]] [list push $chan $nick]
} else {
return 0
}
}
proc push {chan nick} {
if {![botisop $chan]} return
if {[isvoice $nick $chan]} return
pushmode $chan +v $nick
}