mIRC Home    About    Download    Register    News    Help

Print Thread
How to /join if people in channel > some number? #26528 27/05/03 11:25 PM
Joined: May 2003
Posts: 4
X
xsrossiter Offline OP
Self-satisified door
OP Offline
Self-satisified door
X
Joined: May 2003
Posts: 4
Can anybody help me write a script that will /join a channel only if the count of people present exceeds say 5? Some kind of if-then comparing against a variable. Is this a case for RAW commands (of which I know nothing but will probably have to learn eventually)? Thanks, Steve.

Re: How to /join if people in channel > some number? #26529 27/05/03 11:45 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
raw 366:*: {
if ($nick($2, 0)) <= 5) /part $2
}

That will effectivly part you from a channel if there are less than (or equal to) 5 users


-KingTomato
Re: How to /join if people in channel > some number? #26530 27/05/03 11:54 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
in reply to: /join a channel only if the count of people present exceeds say 5?

he wants to join if it exceeds 5, not join then part if its more than 5


new username: tidy_trax
Re: How to /join if people in channel > some number? #26531 27/05/03 11:59 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I'll leave the channel getting from a list, parsing what the active count is, closing the list window and then deciding if he would like to join all up to you pheonix. Until then, i'm sure staying in there 1 or 2 seconds isn't going to kill them.

--
EDIT: See that, make me go beyond 600 posts >:\


-KingTomato
Re: How to /join if people in channel > some number? #26532 28/05/03 12:02 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i suppose mad

Last edited by pheonix; 28/05/03 12:02 AM.

new username: tidy_trax
Re: How to /join if people in channel > some number? #26533 28/05/03 06:06 AM
Joined: May 2003
Posts: 4
X
xsrossiter Offline OP
Self-satisified door
OP Offline
Self-satisified door
X
Joined: May 2003
Posts: 4
Thanks King Tomato. May no one ever squash you.