mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Feb 2006
Posts: 546
J
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
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
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
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I think you'll need HALTDEF on those.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
Originally Posted By: Riamus2
I think you'll need HALTDEF on those.


No, halt works.

Joined: Jul 2007
Posts: 1,129
T
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.

Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
Both /halt and /haltdef stop the default output, while /halt also stops the script execution. /halt implies /haltdef.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
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

Link Copied to Clipboard