Code:
on @*:text:.* &:#: {
  if ($nick isop $chan) {
    if ($1 == .v || $1 == .h || $1 == .o) {
      mode $chan $replace($1,.,+) $2
    }
  }
}
on @*:input:#: {
  if ($1 == .v || $1 == .h || $1 == .o) {
    mode $chan $replace($1,.,+) $2
  }
}


This will only work if the person using the commands is an op and only if the person running the script is opped. It will also work for the person running the script to type it.

.v nick
.h nick
.o nick

If you want it to work for specific people even if they aren't an op, then you'll want to use your userlist to specify who can use the script.


Invision Support
#Invision on irc.irchighway.net