All pastes #97309 Raw Edit

Untitled

public text v1 · immutable
#97309 ·published 2006-07-23 15:40 UTC
rendered paste body
proc moderoc {nick uhost hand chan mode victim} { 
        global botnick debug flg bots 
        if {$mode == "+b"} { 
                if {$nick == $botnick} { 
                        foreach ban [banlist $chan] { 
                                set host [lindex $ban 0] 
                                set reason [lindex $ban 1] 
                                set life [lindex $ban 2] 
                                set exp [expire:ban $life] 
                                set by [lindex $ban 5] 
                                if {$host == $victim} { 
                                        putlog "Banning: $chan $host $by $reason L: $exp" 
                                         proc:ban $chan $host $by $reason $exp 
                                } 
                        } 
                } 
        } 
}