mIRC Home    About    Download    Register    News    Help

Print Thread
Script #115922 31/03/05 02:40 PM
Joined: Mar 2005
Posts: 1
D
dnbrt Offline OP
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Mar 2005
Posts: 1
Hello, I've got this script:

on 1:join:#mychannel:/mode #mychannel +v $nick

It voices everyone that enters mychannel. But how can i make it to only voice some users, or devoice some users.

forexample: everyone can be voiced, except user XXXXY
or: noone gets voiced, only user ZZZZZ
or: users YYYZ gets a devoice

Re: Script #115923 31/03/05 03:10 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Everyone gets voiced except Andy.

Code:
On @!*:Join:#mychannel: {
  if ($nick != Andy) {
    mode $chan +v $nick
  }
}


Andy gets voiced.
Code:
On @!*:Join:#mychannel: {
  if ($nick == Andy) {
    mode $chan +v $nick
  }
}


And when they join a channel, they'll be devoiced anyway.