mIRC Home    About    Download    Register    News    Help

Print Thread
#124062 01/07/05 08:18 PM
Joined: Jun 2005
Posts: 4
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Jun 2005
Posts: 4
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
Joined: Apr 2005
Posts: 64
V
Babel fish
Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Code:
on 1:join:#chan: {
  mode #chan +v $nick
}  


Not tested.. smile

#124064 01/07/05 08:29 PM
Joined: Jun 2005
Posts: 4
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Jun 2005
Posts: 4
Thanks.

#124065 01/07/05 08:50 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
#124066 02/07/05 12:34 PM
Joined: Apr 2005
Posts: 64
V
Babel fish
Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
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.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#124068 05/07/05 01:37 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, you can use # instead of $chan... I was just meaning to use $chan (or #) instead of specifying the specific channel name(s). smile


Invision Support
#Invision on irc.irchighway.net
#124069 05/07/05 01:39 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
mIRC comes with a built-in auto voice list.

/help /avoice


Gone.

Link Copied to Clipboard