shroudBNC Board

Full Version: delbouncer.tcl - Allows users to delete their Bouncers.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
internalbind command sbnc_delme

proc sbnc_delme {client params} {
    if {[string tolower [lindex $params 0]] == "delme"} {
        if {[bnccheckpassword $client [lindex $params 1]]} {
            delbncuser $client
            
            haltoutput
            return
        }

        bncreply "To delete your Bouncer, enter"
        bncreply "/sbnc delme \[PASSWORD\]"
        
        haltoutput
        return
    } elseif {[string tolower [lindex $params 0]] == "help"} {
        bncaddcommand delme User "Deletes your Bouncer" ""
    }
}
Reference URL's