mIRC Home    About    Download    Register    News    Help

Print Thread
X
xsrossiter
xsrossiter
X
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: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
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

P
pheonix
pheonix
P
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

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
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 >:\

P
pheonix
pheonix
P
i suppose mad

Last edited by pheonix; 28/05/03 12:02 AM.
X
xsrossiter
xsrossiter
X
Thanks King Tomato. May no one ever squash you.


Link Copied to Clipboard