mIRC Home    About    Download    Register    News    Help

Print Thread
events condition based on number of channel users #231511 21/04/11 03:26 AM
Joined: Apr 2008
Posts: 3
J
Jan86 Offline OP
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Apr 2008
Posts: 3
events condition based on number of channel users

the default options for events should include one that can be chosen for "large" channels, also, definable by the mIRC user.

i.e.: you could automatically hide join/parts for big channels by default

Re: events condition based on number of channel users [Re: Jan86] #231512 21/04/11 03:41 AM
Joined: Feb 2006
Posts: 546
J
jaytea Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
this is precisely why we have a scripts editor in the client


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Re: events condition based on number of channel users [Re: Jan86] #231521 21/04/11 02:12 PM
Joined: Apr 2010
Posts: 921
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 921
Just an example to hide JOIN PART and MODE's for channels with atleast 100 users. Am sure you could look in the helpfile for more info

Code:
alias largechannel return 100
on ^*:JOIN:#:{ if ($Nick($chan,0) >= $largechannel) { halt } }
on ^*:PART:#:{ if ($nick($chan,0) >= $largechannel) { halt } }
on ^*:RAWMODE:#:{ if ($nick($chan,0) >= $largechannel) { halt } }

Last edited by FroggieDaFrog; 21/04/11 02:13 PM.

I am SReject
My Stuff
Re: events condition based on number of channel users [Re: FroggieDaFrog] #231523 21/04/11 03:36 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
I think you'll need HALTDEF on those.


Invision Support
#Invision on irc.irchighway.net
Re: events condition based on number of channel users [Re: Riamus2] #231524 21/04/11 03:55 PM
Joined: Dec 2002
Posts: 339
D
drum Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
Originally Posted By: Riamus2
I think you'll need HALTDEF on those.


No, halt works.

Re: events condition based on number of channel users [Re: Riamus2] #231558 23/04/11 02:17 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
I've seen halt and haltdef used interchangeably for custom events. They both seem to be acceptable. frown
Though according to the help file:
Quote:
If you only want to halt the default text without /halting the entire script, you can use the /haltdef command.

Re: events condition based on number of channel users [Re: Tomao] #231587 25/04/11 01:15 AM
Joined: Dec 2002
Posts: 339
D
drum Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
Both /halt and /haltdef stop the default output, while /halt also stops the script execution. /halt implies /haltdef.

Re: events condition based on number of channel users [Re: drum] #231594 25/04/11 02:35 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Yeah. I've been in the habit of using HALTDEF to halt default text because most of the time, I have something else happening and HALT would not work. It's more of a personal preference, I guess. I'd rather use HALTDEF so that I don't forget and put a HALT where it shouldn't be. It's the same reason I use RETURN instead of HALT in places where either could be used. There are times when you can't interchange them. Of course, as long as you know when they can be interchanged, you can use either and you'll be fine. I just haven't used HALT to halt default text in awhile and forgot that they could be changed in this specific case. smile


Invision Support
#Invision on irc.irchighway.net
Re: events condition based on number of channel users [Re: Riamus2] #231599 25/04/11 07:02 AM
Joined: Apr 2010
Posts: 921
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 921
normally I use HALTDEF and RETURN aswell, but that was a quick example I threw together out of laziness blush


I am SReject
My Stuff