mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
Is there a way i can scan my channel logs for certain data? Like if i want to search for how many times some one was opped, or how many times some one was kicked and who kicked them? I tried using $read(c:\stats-r-us\phazenet\#channel.20030127.log,w,*kickee*was*kicked*by*,0) but all that returned was either the first instance of what i was scanning for, or it returned nothing. is this the best way to scan for something in log files? any other way of scanning log files so i can get the data i need?


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You can do that with /filter. Filter all the matching lines to a hidden custom window and then check $filtered.
Code:
...
window -h @@
filter -fw c:\stats-r-us\phazenet\#channel.20030127.log @@ *kickee*was*kicked*by*
close -@ @@
echo -s Found $filtered matches.
...


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
thanks qwerty, that works great smile .
now, is there a way to get the channel name in there too or would i have to modify the way my bot logs channels?


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.

Link Copied to Clipboard