mIRC Homepage
Posted By: keeker Scanning logs for certain data - 27/02/03 11:30 PM
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?
Posted By: qwerty Re: Scanning logs for certain data - 28/02/03 12:06 AM
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.
...
Posted By: keeker Re: Scanning logs for certain data - 28/02/03 01:25 AM
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?
© mIRC Discussion Forums