mIRC Home    About    Download    Register    News    Help

Print Thread
#111606 17/02/05 05:59 AM
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
I think I may have found a bug with the $line() identifier in mIRC v6.16.

The following command works in almost every window in mIRC:

//echo -a $line($active,0)


That would return the number of lines in the active window.

If you try using that command in a DCC Chat window, you get the following error:

* /echo: insufficient parameters


I would say this is a bug...

#111607 17/02/05 08:11 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I remeber there is something else odd about dcc chat windows as well, but it wasnt this.
It does seem to be a bug or at least not the reply you would expect its returning $null for not just number of lines but $null for any line number as well.

6.16 & 6.14 win2ks

#111608 17/02/05 08:17 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Windows XP Pro SP2 mIRC 6.16 works fine here
Tried in my status window one of my custom windows and a normal channel window plus a query outputs 0 when theres no lines and the correct amount of lines in the others

#111609 17/02/05 10:50 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
he specificed a dcc chat window was where the problem occurs

#111610 17/02/05 01:10 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I agree that you could call it a bug. It's a side-effect of the fact that a dcc chat window can be referred to in two ways: either as "=nick" or as "Chat nick". $active returns the former, $line() accepts the latter. /window accepts both.

DaveC, you're probably talking about /window not accepting =nick enclosed in quotes (fixed in v6.15)


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

Link Copied to Clipboard