Discussion:
i need a script..
(too old to reply)
Erik
22 years ago
Permalink
that will check the number of users on a channel when I connect to the
server, and will then join that channel if there are more than 3 or 4
users

it would be preffered if the script wouldn't need to log on to the
channel because there is a stats bot in it
--
Winamp is not loaded
Olathe
22 years ago
Permalink
I suppose you could use /list #channel and handle the raw event that shows
the number of users

=====
Post by Erik
that will check the number of users on a channel when I connect to the
server, and will then join that channel if there are more than 3 or 4
users
it would be preffered if the script wouldn't need to log on to the
channel because there is a stats bot in it
--
Winamp is not loaded
Erik
22 years ago
Permalink
Post by Olathe
I suppose you could use /list #channel and handle the raw event
that shows the number of users
=====
Post by Erik
that will check the number of users on a channel when I connect to
the server, and will then join that channel if there are more than
3 or 4 users
it would be preffered if the script wouldn't need to log on to the
channel because there is a stats bot in it
--
Winamp is not loaded
I am new to mIRC scripting, so could you please explain that to me?
Or, better yoet, you could write the script.

thanks!
Øyvind
21 years ago
Permalink
Post by Erik
that will check the number of users on a channel when I connect to the
server, and will then join that channel if there are more than 3 or 4
users
it would be preffered if the script wouldn't need to log on to the
channel because there is a stats bot in it
--
Winamp is not loaded
well. Using /list #channel is too slow on some irc networks
use /names #channel instead
then use

raw 353:*:/inc %users $numtok($gettok($4-,1,$asc(:)),32)
raw 366:*:/echo -a Number of users: %users | /unset %users

The big problem about this is that people with invisible mode (+i) will not
be shown.
And if the channel is private or secret (+p/+s), no nicks will be listed.
The same thing is if you use /list #channelname, so the only solution have
to
be to join the channel, then count users by using $nick($chan,0)

Loading...