mIRC Home    About    Download    Register    News    Help

Print Thread
#22033 03/05/03 06:15 AM
Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
Of a particular channel?

Any idea how I could make something to do that?

Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$window(#channel).logfile

Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
Sometimes the log names are more complex than that, though. ie, with dates, etc.

So you're saying there's no actual identifier?

Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
Nevermind, I got that much.

Now, though, how would I do the same thing for a given $nick?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$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...

Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
Thanks, but I'm trying to use this in a channel popup, not a query.

How would I do that?

Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
Actually, that doesn't seem to work for either for me...

I get insufficient parameters.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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

Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
Okay, well, what should I be using for an identifier for the current PM nick?

$nick wouldn't work, obviously.

Thanks for your help.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
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

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
menu query {
-
Open log {
run $window($active).logfile
}
-
}

Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
There is also $mklogfn()
$logdir $+ $mklogfn(<nick|chan|word|number|$$1|$active|etc>)
$logdir $+ $mklogfn($1)


Link Copied to Clipboard