Showing history in query - 03/01/06 10:00 AM
Like most people, I chat on IM apps like MSN or aim, and am used to having the recent history of a conversation showing up in IM windows so I know the context of the conversation/who I am talking to.
I talk alot to people in queries on IRC, and have started getting annoyed that I couldn't get the log history to show up in new queries.
So I started writing a little script to do it for me. I'm having some trouble getting it to work though.
Here's what I have:
It doesn't seem to be working right now, so any ideas as to why not would be helpful.
This is my first time scripting with mIRC, but I have alot of C/C++/Java exp.
TIA.
I talk alot to people in queries on IRC, and have started getting annoyed that I couldn't get the log history to show up in new queries.
So I started writing a little script to do it for me. I'm having some trouble getting it to work though.
Here's what I have:
Code:
on 1:OPEN:?:*:{ var %fname = $logdir $+ $nick $+ .log //echo %fname if (isFile(%fname) == $true) { var %lns = $lines(%fname) var %cur = %lns - 5 while ((%cur <= %lns) && (%cur != 0)) { //echo $read (%fname, %cur) %cur = %cur + 1 } } }
It doesn't seem to be working right now, so any ideas as to why not would be helpful.
This is my first time scripting with mIRC, but I have alot of C/C++/Java exp.
TIA.