mIRC Home    About    Download    Register    News    Help

Print Thread
#128969 31/08/05 07:07 PM
Joined: Aug 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
hello.
for example, if that nick is <testnick>, i tried simply looking in logs\testnick.log , but apparently there are all sorts of options for the logs in mIRC Options, and that could be logs\network_name\testnick.log or even with timestamps like logs\network_name\month\testnick.log etc.

is there a more simple way that i can find the log file for a specific nick? like if i want to display the name of the log file when the query opens with that nick.

secondly..what do i do with special characters, for example a nick like testnick|aw has a log with the name testnick_aw.log. how can i find that?
thank you.

#128970 31/08/05 07:31 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Actually I believe they're stored like:
logs\Network\testnick.log

And if you have date enabled in filenames it would look like:
logs\Network\testnick.20050831.log

Code:
On *:Open:?:*: {
  var %x = $findfile($mircdir,*.log,0)
  while (%x) {
    if ($+(*,$nick,*) iswm $+(",$findfile($mircdir,*.log,%x),")) loadbuf $nick $v2
    dec %x
  }
}


Maybe something like that to check if $nick has a conversation with you previously then load it.
*shrugs* just an example/idea.


-Andy

#128971 31/08/05 08:16 PM
Joined: Aug 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
yep.. i guess that would work and that's what i'll probably do if i find no better solution, but that's a lot of hard drive access every time a query opens, especially if i have lots of logs (which i do) i was kinda hoping for something faster....

and still, the problem with special characters... still trying to figure out a solution smile

#128972 31/08/05 08:23 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
With the special characters I guess the $regex() function would probably do the trick, but I don't know about it so.. smile

-Andy

#128973 01/09/05 12:32 PM
Joined: Aug 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
maybe there is a way to "read" the options and see which kind of log it is (with network, month,week etc)?
help pls!

#128974 02/09/05 05:58 AM
Joined: Aug 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
pls.. nobody?

#128975 02/09/05 03:30 PM
Joined: Dec 2002
Posts: 83
D
Babel fish
Offline
Babel fish
D
Joined: Dec 2002
Posts: 83
search "mirc unleashed" by Merlin to read via mirc.ini !

#128976 02/09/05 04:29 PM
Joined: Aug 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
thanks very much smile


Link Copied to Clipboard