mIRC Home    About    Download    Register    News    Help

Print Thread
/aline, etc and logging custom windows #158140 01/09/06 10:41 AM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline OP
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Code:
//log on @moo | window @moo | aline @moo This line won't log | echo @moo This line should be logged | run $qt($findfile($logdir,@moo.*,1)))


Any particular reason why /echo would log and /aline would not? smile

Coolkill / Eamonn. (@#helpdesk,@#irchelp,@#nohack.)

Re: /aline, etc and logging custom windows #158141 01/09/06 11:44 AM
Joined: Feb 2006
Posts: 546
J
jaytea Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
i've noticed this before, but accepted it as reasonable behavior :tongue: for some reason it doesnt feel like it should be a bug lol, i wouldnt expect custom windows to normally be used as windows that required logging.. so it should follow that commands assosciated specifically for custom wins shouldnt log by default, especially since it's a bit more intensive processing-wise (since it writes to a file). however i do think this behavior of /aline, and other /*line commands, should be documented blush


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Re: /aline, etc and logging custom windows #158142 01/09/06 11:55 AM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline OP
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
to keep others in the loop, our discussion and prevent repeats:

<jaytea> Coolkill i replied to your bög report laugh
<jaytea> ye mirc.com's bug report forum o_O
<Coolkill> yea i read it, made no sense to me (what you said)
<Coolkill> if its going to a custom window, it should be logged especially since you cannot use /echo in a custom window, other than to add to the bottom (/top) of the buffer
<Coolkill> i.e. you cannot insert (hence my issue), in the end i got fed up and made it savebuf on close
<Coolkill> and seeing how /echo supports a flag to 'not log' that to me indicates, mirc isnt logging the window, but rather the parameters of the command
<Coolkill> (hence the issue with not logging /line cmds. =)

Eamonn.

Re: /aline, etc and logging custom windows #158143 01/09/06 12:12 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Since you're talking about insertion, I assume you're now referring to /iline and not to /aline. If so, logging is undesirable exactly because /iline can insert lines; to insert a line in the middle of a log file, mirc has to rewrite the entire file below that line. Now imagine calling /iline in a loop when the log file has grown considerably big... Doing a /savebuf yourself after the loop has finished is indeed a far better approach.

In my opinion, /*line commands should not log by default. That said, a new /*line switch that makes the command update the log file might be of use (or abuse :tongue:) to some.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com