mIRC Home    About    Download    Register    News    Help

Print Thread
#206141 08/11/08 11:51 AM
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Is there a way to:
a - have a separate auto-join list for a certain nick? (no-nick)
b - on joining certain channels with a certain nick to automatically leave. - I don't want it to automatically leave if it is invited. (if possible)

Thanks!

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:connect:{
  if $me == no-nick {
    .join #channelA,#roomB,#channelC
  }
}
on *:invite:#:{
  .join $chan
  set $+(%,invite,$network) $addtok($($+(%,invite,$network),2),$chan,44)
}
on me:*:join:#:{
  if !$istok($($+(%,invite,$network),2),$chan,44) {
    .part $chan
  }
}

Note that the auto-join (first code) is not network specific, but the other two (which work with each other) are.

Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
ok, thanks!

I will try it smile


One question: Do I need to do this for each of my nicknames and do I need to take the auto-join off using the standard mIRC method?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You only need to have nick comparisons if you want the commands to be used for specific nicks. You don't have to turn the auto-join off in mIRC Favourites.. worst case scenario you'll send the /join command to the server for a channel that you're already in.

I don't know if you'd find this handy or not, but I have a snippet called Auto-Part

Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Thanks very much!


Link Copied to Clipboard