mIRC Homepage

How to /join if people in channel > some number?

Posted By: xsrossiter

How to /join if people in channel > some number? - 27/05/03 11:25 PM

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.
Posted By: KingTomato

Re: How to /join if people in channel > some number? - 27/05/03 11:45 PM

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
Posted By: pheonix

Re: How to /join if people in channel > some number? - 27/05/03 11:54 PM

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
Posted By: KingTomato

Re: How to /join if people in channel > some number? - 27/05/03 11:59 PM

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 >:\
Posted By: pheonix

Re: How to /join if people in channel > some number? - 28/05/03 12:02 AM

i suppose mad
Posted By: xsrossiter

Re: How to /join if people in channel > some number? - 28/05/03 06:06 AM

Thanks King Tomato. May no one ever squash you.
© 2020 mIRC Discussion Forums