mIRC Home    About    Download    Register    News    Help

Print Thread
#70568 07/02/04 10:01 AM
Joined: Feb 2004
Posts: 54
Cyclone Offline OP
Babel fish
OP Offline
Babel fish
Joined: Feb 2004
Posts: 54
#sx2.quits on
on 1:QUIT: {
if ($nick == $me) .amsg 4,0 S3x12²1» $sx2.nesrch( $network ) 2- ciao baby! ;¬)
else { if ($target != $active) sx2echo $sx2.npm( $nick ) 14quits $network - $1- }
}
#sx2.quits end

this code works... however, it's supposed to notify me when people quit from rooms i am in when that particular channel is not my active window. What i am getting is a notification whether i am active in that channel window or not. Can anybody please point me in the right direction?

Thanks in advance... grin

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
QUIT events do not have a target or $chan identifier. you need to loop through $comchan() to get the channels a user quit on.


-KingTomato
Joined: Dec 2002
Posts: 35
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 35
Like this:
Code:
on ^*:QUIT: {
  var %d = 1
  while ($comchan($nick,%d)) {
    echo $color(quit) -t $ifmatch »13Quit: $nick $chr(91) $address $chr(93) $iif($1-,$+($chr(40),$1-,$chr(41)))
    inc %d
  }
  haltdef
}

Last edited by Chris233; 08/02/04 08:39 PM.

Link Copied to Clipboard