mIRC Homepage
Posted By: Scuuba on quit @ the chan -> haltdef? - 04/02/03 05:29 AM
I'm on a chan with 500 others, so there is many joins and quits whole time. On join event is easy to haltdef so that it does not appear on that one channel, but on quit event does not see difference between channels, so it's only "on or off"...

How can I haltdef on quit events only on one cannel?
Posted By: Collective Re: on quit @ the chan -> haltdef? - 04/02/03 05:50 AM
Code:
on ^*:QUIT:{
  haltdef
  %c = 1
  while ( $comchan($nick,%c) != $null ) {
    if ( $comchan($nick,%c) != [color:green]#channel[/color] ) {
      echo $color(quit) -t $comchan($nick,%c) $nick ( $+ $gettok($fulladdress,2,33) $+ ) Quit ( $+ $1- $+ )
    }
    inc %c
  }
}
Posted By: theRat Re: on quit @ the chan -> haltdef? - 04/02/03 12:03 PM
Right click the channels switchbar button and choose Events...
Posted By: Scuuba Re: on quit @ the chan -> haltdef? - 04/02/03 04:46 PM

I remembered that Events...-settings would affect all channels, but maybe that was some earlier version of mirc (m(irccing) since -95). Dunno, but thats why I asked for this script. Sorry, my bad, etc...

And that script is very useful in that case you want to do some stuff tiggered only from certain channels. I did not know how to combine those functions to get it work the way I needed. But now I'v seen an example and I can do variations of it.

So, Thank you both!
© mIRC Discussion Forums