mIRC Home    About    Download    Register    News    Help

Print Thread
#95646 26/08/04 01:29 AM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
on *:join:#testing: {
var %a = 1,%b
while ($nick($chan,%a)) {
%b = %b $v1
inc %a 1
}
write -l1 c:\bigger\scripts\gg.txt %b
}
ok 1st thing i need it so it doesnt write the name if ther is the same 1 already,
simple (!read), umm since it still wont write on JUST line 1 i need a way to either do that or when sum1 join the chan
on *:join:#testing:/notice $nick Hey Welcome To #gamesgalore The Total List Of People Are..... $read(c:\bigger\scripts\gg.txt)
it will say this and it would read every line and right it the that person that join ON JUST ONE LINE... any1 plz lol

Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Your preferred option may not be the best. If it's a small channel, reading directly from the nickliust would be faster than reading from a txt file (we're not talkjing about reading it once here, remember...). If it's a big channel, hashtables might even be preferable as txt files would be too slow. Additional problem then is that in the loop you will need to add the nicks to a variable, and when that is filled, send the variable. But in big channels the variable length will be too limited to hold all the nicks. Why don't you simply dio a /names on the channel and catch the reply from that - that already has all the nicks on a line, and if the line gets too big it auto-crops to multiple lines to prevent problems like what I just described.

Also if it's a bigger channel, there will be a lot of parts/joins/quits/kicks, using a text file would put too big a stress on your system. In either case you'll need to build in some kind of check to make sure you don't flood yourself off...

I don't see why you'd wanna do that tho, the user who joined can see all the nicks in the nicklist, which is way easier to read than a long line with nicks.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard