Code: Select all
bind dcc nm|nm mop mass:op
set chanz "#jjrd"
proc mass:op {nick idx host hand args} {
global chanz botnick botnet-nick
if {![onchan $botnick $chanz]} { continue }
foreach nick [chanlist $chanz] {
if {[isbotnick $nick] || [isop $nick $chanz] } { continue }
if {[matchattr $handle +o] } { putmode +o $chanz $nick }}
}
Code: Select all
bind dcc nm|nm mop mass:op
set chanz "#jjrd"
proc mass:op {hand idx args} {
global chanz botnick botnet-nick
if {![onchan $botnick $chanz]} { continue }
foreach nick [chanlist $chanz] {
if {[isbotnick $nick] || [isop $nick $chanz] } { continue }
if {[matchattr $hand +o] } { pushmode $chanz +o $nick }}
}
should be:proc mass:op {nick idx host hand args} {
As for the code, try something like this:proc mass:op {hand idx args} {
Code: Select all
bind dcc nm|nm mop mass:op
set chanz "#jjrd"
proc mass:op {hand idx text} {
if {![botonchan $::chanz] || ![botisop $::chanz]} {
continue
}
foreach nick [chanlist $::chanz o|o] {
if {[isbotnick $nick] || [isop $nick $::chanz]} {
continue
}
pushmode $::chanz +o $nick
}
}
Code: Select all
proc bla {} {
global moo bla
if {$moo = 2} { return }
putlog $bla
}
Code: Select all
proc bla {} {
if {$::moo = 2} { return }
putlog $::bla
}