mIRC Homepage
I propose a new identifer that can read the sessions of a log file....

$readlog(filename, S, N)
S is the session number, if 0 returns number of sessions
N is the line number of that session, if 0 returns number of lines in a session

Example:

$readlog(SampleFileBelow, 1, 0) = 1
$readlog(SampleFileBelow, 1, 1) = <X> This is session 1...
$readlog(SampleFileBelow, 2, 0) = 1
$readlog(SampleFileBelow, 2, 1) = <X> This is session 2...

--- Sample Log File ----
Session Start: Wed Dec 11 15:25:53 2002
Session Ident: X
Session Ident: X (X@X.com)
<X> This is session 1...
Session Close: Thu Dec 19 22:02:36 2002

Session Start: Wed Dec 11 15:25:53 2002
Session Ident: X
Session Ident: X (X@X.com)
<X> This is session 2...
Session Close: Thu Dec 19 22:02:36 2002
Sounds like useless to me. And you can do that with scripts. ;p
You can do anything with scripts and DLLs, the point is not to have too... duh. wink

Might seem useless to you, but you probably don't want to be able to manage your log files as well as I do... smile
$readlog would be identifier? So you'd still have to script a lot, I think that making the code for the identifier yourself would be the smallest part of some über 1337 log script, if it's going to have any use. Of course it would be a bit slower, but scripts and file operations are always slow.

How many mIRC scripters you know that actually need this kind of feature so much, but still not enough to script it?
How many mIRC scripters you know that would use the identifier when they've already made one customed to their needs?
Why can't you people understand? I know it can be scripted, I have already scripted this, that is not the problem. Just because it CAN be done with scripts doesn't mean it shouldn't be an internal mirc identifer...

Please, No more negative comments if all you are going to basiclly say is "Who would use it?", I would and that is enough. wink

I don't use any of that agent crap, doesn't mean it should be there... smile
So Khaled should implement it in the next version just for you - because you think that's enough? And that 'agent crap' is there for people with limited vision. I personally think that it's a good enough reason for that to be there.
What would you use it for?
© mIRC Discussion Forums