mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 788
C
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.)

Joined: Feb 2006
Posts: 546
J
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
Joined: Dec 2002
Posts: 788
C
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.

Joined: Jan 2003
Posts: 2,523
Q
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

Link Copied to Clipboard