When people join that are not op or admin.
It voices.
If they are op or admin.
It doesn't.
Just put in remotes (alt-r)
with help from blackvenom
on *:JOIN:%avcl:{
.set %cn $nick
.set %cc $chan
ac
}
alias ac {
.enable #ac
.whois %cn
}
#ac off
raw 313 :*: { echo -a adminadmin
.disable #ac
}
raw 318 :*: { sc%cn %cc
.disable #ac
}
#ac end
alias sc {
if $nick($2,$1,a,ohv) {
mode $2 +v $1
}
}
It's long-winded to set %cc for both $nick and $chan and then tokenize it. The original demo is shorter to the point. You do that when you have more than 2 longer values or more to refer to under one variable. You should've made a valid, targeted suggestion about how he should improve his script rather than come out with your own scripts just to overshadow the posted snippet. I would call that "my take on your script" instead of a "tip."
:D he gave me credit woot. anyways what he failed to mention which im not sure if i made it clear is some chatspace servers hide who is admin from regular chatters. On these servers Raw 313 does not show up for regular users only for admins therefore this snippet will not work. But if you are admin or on a server that doesnt hide the raw 313 this snippet works nicely:)