mIRC Home    About    Download    Register    News    Help

Print Thread
#232705 16/06/11 09:34 PM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Hi.

I'm on a network where you're sajoined ( I think that's the correct term ) to certain channels, and i'd like to auto-part one specific channel, how would I do this?

I found this in my search, which might be of some use, although it needs modifying I guees:
Code:
on me:*:join:#:{
  if $chan == $network {
    .part $chan
  }
}

I hope you can help me.

starpossen #232707 16/06/11 09:39 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Use the channel name instead of $network...

Code:
  if $chan == #channelname


Or, make it shorter and remove the if altogether and put the #channel into the event line (replace # with #channelname).


Invision Support
#Invision on irc.irchighway.net
Riamus2 #232709 16/06/11 10:13 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Well, I think the if statement can be omitted:
Code:
on me:*:join:#channelname:{


Opps, I didn't see your extra text at the bottom. It suddenly appeared before my eyes.

Last edited by Tomao; 16/06/11 10:15 PM.
Tomao #232710 16/06/11 10:23 PM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Sorry if i'm a bit slow tonight, but would this do:
Code:
on me:*:join:#channel:{
    .part $chan
}

?

starpossen #232711 16/06/11 11:05 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes.


Invision Support
#Invision on irc.irchighway.net
starpossen #232714 17/06/11 12:43 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
That'll do. And if you decide to add more channels, be sure you separate them with a comma like so:
Code:
on me:*:join:#channel,#chan2,#chan3,#chan4:{
    part #
}
then when you join them, the code will part you right away.

Tomao #232718 17/06/11 08:52 AM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Thanks alot for the help guys, have a nice weekend.


Link Copied to Clipboard