All pastes #936701 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-10 16:18 UTC
rendered paste body
bind dcc m|m wipehosts dcc:wipehosts

proc dcc:wipehosts {hand idx arg} {
    set handle [lindex $arg 0]
    set newhost [lindex $arg 1]
    if {$handle == ""} {
        putdcc $idx "Usage: .wipehosts <handle> \[new hostmask\]"
        return 0
    }

    putcmdlog "\#$hand\# wipehosts $handle $newhost"
    setuser $handle HOSTS

    if {$newhost != ""} {
        setuser $handle HOSTS $newhost
    }
}