mIRC Home    About    Download    Register    News    Help

Print Thread
#236110 04/02/12 11:43 AM
Joined: Jul 2006
Posts: 4,180
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
$line doesn't work with a dcc chat window if the connection hasn't been made successfully.

It's probably not something related to $line, rather to how dcc (chat?) windows are handled in general but I noticed it with $line..


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #236114 04/02/12 09:06 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Can you show code that reproduces this? Because I can't.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2006
Posts: 4,180
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
Well just make sure the connection isn't made.
For me typing //dcc chat $me is sufficient but just try that on a bot or something and try getting $line to work for that window


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #236118 04/02/12 10:40 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Right, I did that, and cannot reproduce. Please list exactly what you are doing in proper steps.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Wims #236119 04/02/12 11:01 PM
Joined: Mar 2010
Posts: 57
W
Babel fish
Offline
Babel fish
W
Joined: Mar 2010
Posts: 57
Confirmed (7.22).

$line(=Foo,0) returns $null if the connection was ignored/canceld/waiting.

Otherwise it returns the correct number of lines.

Last edited by Wiz126; 04/02/12 11:02 PM.
Joined: Jul 2006
Posts: 4,180
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
The only step is typing //dcc chat $me for me cause it is sufficient to make the connection not successfull, but I just tried with Wiz, same results, I'm not sure about how you are testing this.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #236123 05/02/12 01:45 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Confirmed. 7.22


To reproduce:
1: Enter the following: //dcc chat $me
2: Ignore chat
4: Make DCC Chat window active
5: Enter the following: //echo -a $line($active,1)


Last edited by FroggieDaFrog; 05/02/12 01:46 AM.

I am SReject
My Stuff
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I was able to reproduce this, thanks.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Wims #236149 07/02/12 10:11 AM
Joined: Dec 2002
Posts: 5,477
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,477
Thanks this issue has been fixed for the next version.


Link Copied to Clipboard