mIRC Home    About    Download    Register    News    Help

Print Thread
#52064 30/09/03 11:29 PM
Joined: Feb 2003
Posts: 11
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Feb 2003
Posts: 11
I'm trying to write a script that will take the number of users in a certain channel and log them to a file. 1) how would I do that and 2) is it possible to do that without actually being in the channel? Connected to the server of course, but e.g., manipulating /list somehow?

Joined: Jul 2003
Posts: 22
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2003
Posts: 22
You could manipulate /who for being in a channel you are not in,

/help $nick

Thats for being in a chan

erm.. raw events = /who


raw 352 = listing in who
raw 314 = end of /who


___________________________________________
Ph34r T3h PHP Developers. :]
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If you're going to use that method remember that almost* every server doesn't list users set +i if they're not in the same channel as you.

*Disclaimer for "well irc.x.com does.." type replies

Joined: Feb 2003
Posts: 11
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Feb 2003
Posts: 11
No, that's what I'm looking for... If I could just script it so it would automatically do /list, then save the results to a file, I could just parse out the number myself. Can that be done?

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well you could use a #group and "/list #channel" and write the results from raw 322, but the channels list window will always open, though you can hide it when you recieve raw 321 and close it on raw 323.


Link Copied to Clipboard