Of a particular channel?
Any idea how I could make something to do that?
$window(#channel).logfile
Sometimes the log names are more complex than that, though. ie, with dates, etc.
So you're saying there's no actual identifier?
Nevermind, I got that much.
Now, though, how would I do the same thing for a given $nick?
$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...
Thanks, but I'm trying to use this in a channel popup, not a query.
How would I do that?
Actually, that doesn't seem to work for either for me...
I get insufficient parameters.
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
Okay, well, what should I be using for an identifier for the current PM nick?
$nick wouldn't work, obviously.
Thanks for your help.
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.
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
menu query {
-
Open log {
run $window($active).logfile
}
-
}
There is also $mklogfn()
$logdir $+ $mklogfn(<nick|chan|word|number|$$1|$active|etc>)
$logdir $+ $mklogfn($1)