mIRC Homepage
Posted By: maezr Identifier for the log file? - 03/05/03 06:15 AM
Of a particular channel?

Any idea how I could make something to do that?
Posted By: Nimue Re: Identifier for the log file? - 03/05/03 06:20 AM
$window(#channel).logfile
Posted By: maezr Re: Identifier for the log file? - 13/05/03 09:12 PM
Sometimes the log names are more complex than that, though. ie, with dates, etc.

So you're saying there's no actual identifier?
Posted By: maezr Re: Identifier for the log file? - 13/05/03 09:30 PM
Nevermind, I got that much.

Now, though, how would I do the same thing for a given $nick?
Posted By: Collective Re: Identifier for the log file? - 13/05/03 09:38 PM
$window([color:green]nickname).logfile[/color]
If you want to get the logfile for the active window (either channel or query) you can use this:
$window($active).logfile

That needs the window to be open, though...
Posted By: maezr Re: Identifier for the log file? - 13/05/03 10:00 PM
Thanks, but I'm trying to use this in a channel popup, not a query.

How would I do that?
Posted By: maezr Re: Identifier for the log file? - 13/05/03 10:03 PM
Actually, that doesn't seem to work for either for me...

I get insufficient parameters.
Posted By: Collective Re: Identifier for the log file? - 13/05/03 10:07 PM
It won't work unless the a query window to the nick is open..I don't think there is a way round that.

Edit:
Maybe something like this would work?
query -n $nick | echo -s $window($nick).logfile | close -m $nick
Posted By: maezr Re: Identifier for the log file? - 13/05/03 10:11 PM
Okay, well, what should I be using for an identifier for the current PM nick?

$nick wouldn't work, obviously.

Thanks for your help.
Posted By: Collective Re: Identifier for the log file? - 13/05/03 10:13 PM
Read the edit of the last post I made, maybe that will help you figure something out. When you say the current PM nick, do you mean the logfile for the query you currently have opened? $window($active).logfile will do that.
Posted By: maezr Re: Identifier for the log file? - 13/05/03 10:15 PM
menu query {
-
Open log {
run $window($nick).logfile
}
-
}

$nick doesn't work in that, that's what I'm trying to sort out. :\

Thanks again
Posted By: Collective Re: Identifier for the log file? - 13/05/03 10:16 PM
menu query {
-
Open log {
run $window($active).logfile
}
-
}
Posted By: Nimue Re: Identifier for the log file? - 13/05/03 10:38 PM
There is also $mklogfn()
$logdir $+ $mklogfn(<nick|chan|word|number|$$1|$active|etc>)
$logdir $+ $mklogfn($1)
© mIRC Discussion Forums