mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 4
X
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.

Joined: Jan 2003
Posts: 3,012
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
Joined: May 2003
Posts: 2,265
P
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
Joined: Jan 2003
Posts: 3,012
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
Joined: May 2003
Posts: 2,265
P
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
Joined: May 2003
Posts: 4
X
Self-satisified door
OP Offline
Self-satisified door
X
Joined: May 2003
Posts: 4
Thanks King Tomato. May no one ever squash you.


Link Copied to Clipboard