mIRC Homepage
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.
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
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
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 >:\
i suppose mad
Thanks King Tomato. May no one ever squash you.
© mIRC Discussion Forums