## i was getting sick of ops voicing everyone.. so to solve this made this..
## but i can get it to work right.. and i know it has todo with "matchchanattr $victim v $chan"
##
## Thanks MP5nyper

## Code Start ##

proc uix(novoice) {nick uhost hand chan mode victim} {
  ## just use regular matchattr..check for global or channel voice
  ## format is: global flags|channel flags
  ## and i don't know why  you would use ! here
  if {[matchattr $victim v|v $chan]} {
    ## don't use putquick here..and no space after first : unless you want it in your output
    putserv "PRIVMSG $chan :$nick : $victim is a user.."
    ## don't return 0 ... simple return does the same... return 0 can cause errors in rare instances
    return
  } else {
    ## no need for putquick here either
    putserv "MODE $chan -v $victim"
  }
}
## binds always after the proc
bind mode - *+v* uix(novoice)

## Code END ##