mIRC Home    About    Download    Register    News    Help

Print Thread
join part quit #126735 04/08/05 10:14 AM
Joined: Apr 2005
Posts: 38
J
juble Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Apr 2005
Posts: 38
hi fellows
is there anybody knows a script for this job? i give u an example :
When i am in 2 channels (#chan1, #chan2) how can i see
in active window (when i am in #chan1 ) who is join , part or quit from #chan2 ?

Re: join part quit #126736 04/08/05 12:55 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:join:#: {
  if ($chan != $active) {
    echo $active $nick joined $chan
  }
}

on *:quit:#: {
  if ($chan != $active) {
    echo $active $nick quit $chan
  }
}

on *:part:#: {
  if ($chan != $active) {
    echo $active $nick parted $chan
  }
}


The above code is for if you want joins/parts/quits from all open channels to be displayed (rather than just working with 2 channels).

These will make it echo to ANY active window you are in (so it would echo to a PM window as well). If you want it to echo to only a specific channel, you can make the 3 sections look like this:

Code:
on *:join:#: {
  if ($chan != #chan1) {
    echo #chan2 $nick joined $chan
  }
}


Those will all display all the info from every open channel rather than having to specify specific channels.

If you want it to work for only 2 channels, you can just change the 3 to this format instead:

Code:
on *:join:#chan2: {
    echo #chan1 $nick joined $chan
}


Invision Support
#Invision on irc.irchighway.net
Re: join part quit #126737 04/08/05 04:12 PM
Joined: Apr 2005
Posts: 38
J
juble Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Apr 2005
Posts: 38
i thing this session has a problem.Dont work
on *:quit:#: {
if ($chan != $active) {
echo $active $nick quit $chan
}
}

i thing there is no need :#: ..the corect must be ..ex. on *:quit: {
pls tell me if i am right
thanks smile

Re: join part quit #126738 04/08/05 04:43 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Sorry. Yes, you are correct. I just copy/pasted and forgot that part.


Invision Support
#Invision on irc.irchighway.net