mIRC Home    About    Download    Register    News    Help

Print Thread
#174547 09/04/07 04:21 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
how to auto part my nick if the channel where i am in went down on only 10 users...???

Quote:
on *:part:#:
on *:disconnect:



learn learn learn
learn3r #174548 09/04/07 04:26 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on !*:part:#:{ 
  if ($nick($chan,0) <= 10) { part $chan }
}
on *:kick:#:{
  if ($nick($chan,0) <= 10) && ($knick != $me) { part $chan }
}
on !*:quit:{
  var %i = 1
  while ($chan(%i)) {
    if ($nick($v1,0) <= 10) { part $chan(%i) }
    inc %i
  }
}


Link Copied to Clipboard