Code: Select all
set chan [string tolower [lindex $text 0]]
foreach who $members {
if {[validuser [nick2hand $who $chan]]} { continue }
.. rest of the code ..
}
Code: Select all
proc dcc_masskick {nick idx text} {
global botnick
if {![llength $text] > 0} {
putdcc $idx "Usage: .masskick <#channel> - To MassKick Users"
return 1
}
set chan [tolower [lindex $text 0]]
if {![botisop $chan]} {
putdcc $idx "Sorry, but I'm not oped in $chan channel.."
return 1
}
set members [chanlist $chan]
foreach who $members {
if {$who == [tolower $botnick] || [validuser [nick2hand $who $chan]]} { continue }
putkick $chan $who "Mass Kick"
}
}
proc dcc_massdeop {nick idx text} {
global botnick
if {![llength $text] > 0} {
putdcc $idx "TaKeOvEr 1.0 by SaVeR"
putdcc $idx "Usage: .masskick <#channel> - To MassKick Users"
return 1
}
set chan [tolower [lindex $text 0]]
if {![botisop $chan]} {
putdcc $idx "Sorry, but I'm not oped in $chan channel.."
return 1
}
set members [chanlist $chan]
foreach who $members {
if {$who == [tolower $botnick] || ![isop $who $chan] || [validuser [nick2hand $who $chan]]} { continue }
pushmode $chan -o $who
putlog "#$nick# massdeop"
}
}
Insectora wrote:putdcc $idx "TaKeOvEr 1.0 by SaVeR"
Code: Select all
set chan [tolower [lindex $text 0]]
Code: Select all
set chan [string tolower [lindex $text 0]]
Code: Select all
if {$who == [tolower $botnick] || ![isop $who $chan] || [validuser [nick2hand $who $chan]]} { continue }
Code: Select all
if {$who == $botnick || ![isop $who $chan] || [validuser [nick2hand $who $chan]]} { continue }