=====ORIGINAL===== proc invalid:apc {nick hand chan} { global exmptype if {[isbotnick $nick] || ![botisop $chan] || [isop $nick $chan] || [matchattr $hand f|f $chan] || [matchattr $hand mo|mo $chan]} {return 1} switch -- $exmptype { 3 { if {[isvoice $nick $chan] || [ishalfop $nick $chan]} {return 1} } 2 { if {[ishalfop $nick $chan]} {return 1} } 1 { if {[isvoice $nick $chan]} {return 1} } 0 { return 0 } default { error "Invalid exempt type ($exmptype) must be an integer from 0 to 3" } } return 0 } === END ORIGINIAL == NEW=== proc invalid:apc {nick hand chan} { global exmptype if {[isbotnick $nick] || ![botisop $chan] || [isop $nick $chan] || [matchattr $hand f|f $chan] || [matchattr $hand mo|mo $chan]} {return 1} switch -- $exmptype { 3 { if {[isvoice $nick $chan] || [isop $nick $chan]} {return 1} } 2 { if {[isop $nick $chan]} {return 1} } 1 { if {[isvoice $nick $chan]} {return 1} } 0 { return 0 } default { error "Invalid exempt type ($exmptype) must be an integer from 0 to 3" } } return 0 }