mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 2
S
Scuuba Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Feb 2003
Posts: 2
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?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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
  }
}

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Right click the channels switchbar button and choose Events...


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Feb 2003
Posts: 2
S
Scuuba Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Feb 2003
Posts: 2

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!


Link Copied to Clipboard