mIRC Home    About    Download    Register    News    Help

Print Thread
#124062 01/07/05 08:18 PM
T
thelostsoul
thelostsoul
T
Could someone write me a script (or tell me how to) to give someone a voice when they enter a channel?

#124063 01/07/05 08:20 PM
V
Vinniej
Vinniej
V
Code:
on 1:join:#chan: {
  mode #chan +v $nick
}  


Not tested.. smile

#124064 01/07/05 08:29 PM
T
thelostsoul
thelostsoul
T
Thanks.

#124065 01/07/05 08:50 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Just a small edit:

Code:
on @1:join:#chan: {
  mode $chan +v $nick
}  


Reasons:

@ makes it only try to voice someone if you're opped... otherwise, you'll get an error.

$chan because then you only have to change one spot for #chan and that makes changing the script easier at a later date (including adding multiple channels) to it.

#124066 02/07/05 12:34 PM
V
Vinniej
Vinniej
V
Quote:
Just a small edit:

Code:
on @1:join:#chan: {
  mode $chan +v $nick
}  


Reasons:

@ makes it only try to voice someone if you're opped... otherwise, you'll get an error.

$chan because then you only have to change one spot for #chan and that makes changing the script easier at a later date (including adding multiple channels) to it.


Code:
on @1:join:#chan: {
  mode # +v $nick
}  

Then you can use this code better, # instead of $ ??

#124067 02/07/05 06:31 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
# or $chan are just the same when used in a command.

#124068 05/07/05 01:37 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Yes, you can use # instead of $chan... I was just meaning to use $chan (or #) instead of specifying the specific channel name(s). smile

#124069 05/07/05 01:39 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
mIRC comes with a built-in auto voice list.

/help /avoice


Link Copied to Clipboard