mIRC Home    About    Download    Register    News    Help

Print Thread
#3305 24/12/02 03:13 AM
Joined: Dec 2002
Posts: 20
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
I would like to have a script that will keep track of who joins my channel. I only want to keep the data for say a 24 hour historical period so that when a user joins the channel and does a "who was here" they get the list of what users were on the channel in the last 24 hours, and when the last time was that they were on. I have tried to come up with something but am still not getting the hand of the commands.

Any help woudl be appreciated.

Thanks!


Scott Roberts
T&R Communications of Florida
sroberts@tnrcomm.com
#3306 24/12/02 03:42 AM
Joined: Dec 2002
Posts: 40
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 40
Code:
  
on *:join:#:{
write names.txt $nick $time(hh:mm)
}
 
on *:text:!nicks:{
var %i = 1
while (%i <= $lines(names.txt)) { msg $nick $read(names.txt) | inc %i }
}


That will save the nicks to a .txt file and return the nicks when someone types !nicks. I'm not sure how to do the 24 hour thing other than manually going through and deleting the nicks with the time beside their names from the file...

#3307 24/12/02 03:52 AM
Joined: Dec 2002
Posts: 20
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
Thanks! I appreciate the start....I will try to work on developing it.


Scott Roberts
T&R Communications of Florida
sroberts@tnrcomm.com
#3308 24/12/02 03:58 AM
Joined: Dec 2002
Posts: 40
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 40
I just realized I put $time(hh:mm) when it should be $time(hh:nn) if you change that the time should display properly

#3309 24/12/02 04:36 AM
Joined: Dec 2002
Posts: 20
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
For some reason, it is not writing the file on oin....not sure what I am missing.


Scott Roberts
T&R Communications of Florida
sroberts@tnrcomm.com
#3310 25/12/02 04:33 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Make sure that remotes is on and that you typed the script correctly as specified above. In addition, other On JOIN events within the same remote file may interfere with the remote. You could try putting it in its own file.

Dana


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#3311 25/12/02 05:22 AM
Joined: Dec 2002
Posts: 20
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
Thanks.....I got it working just fine.


Scott Roberts
T&R Communications of Florida
sroberts@tnrcomm.com

Link Copied to Clipboard