mIRC Home    About    Download    Register    News    Help

Print Thread
$ssl - bug #234631 05/11/11 12:49 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Hello,

I have test to see what the $ssl alias does and i open the help file read that "the $ssl identifier can be used to determine whether the current server connection is secure or not." and i used //echo -a $ssl the result was $true while i was not connected to any server! when i connect to an none ssl support IRC server and use //echo -a $ssl the result was $false (correct) , then i disconnect and connect to an ssl support IRC server and use the //echo -a $ssl the result was $true (correct) BUT when i disconnect and use the //echo -a $ssl the result was $true (bug) . If i am wrong please correct me!

- Thanks!

Re: $ssl - bug [Re: westor] #234632 05/11/11 01:12 PM
Joined: Dec 2002
Posts: 339
D
drum Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
When you aren't connected to a server, it appears that it is reporting true/false based on whether the currently selected server (i.e., the server currently listed in the title bar of the status window) uses SSL or not. This is probably intentional behavior. If you need to ensure that you are currently connected to an SSL server, you can also verify that $server exists.

Re: $ssl - bug [Re: drum] #234633 05/11/11 01:17 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
My title bar the server that is there has is not supporting ssl when i use //echo -a $ssl the result is again $true but this must be $false for 2 reasons 1. not connected 2. the titlebar server is not supporting ssl!

Last edited by westor; 05/11/11 01:18 PM.
Re: $ssl - bug [Re: westor] #234636 05/11/11 01:58 PM
Joined: Dec 2002
Posts: 339
D
drum Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
Interesting. If you have a server window in that state (i.e., disconnected, with a non-SSL server listed in the titlebar of the window, and $ssl returns true), what happens if you press the connect button? Does it display a plus sign next the port number when connecting?

By that, I mean this:

Code:
* Connecting to irc.dal.net (+6667)
                             ^-- here

Re: $ssl - bug [Re: drum] #234638 05/11/11 02:16 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Nice so you mean the $port identifier to return the ssl port of the server and you mean that if the $port is not an ssl the $ssl will return $false and if the $port is ssl the $ssl will return $true ? if you mean this so the help file was wrong written because it says "the $ssl identifier can be used to determine whether the current server connection is secure or not." that must be change with "the $ssl identifier can be used to determine whether the $port identifier server port is secure or not."

Re: $ssl - bug [Re: westor] #234640 05/11/11 02:55 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
If $ssl is based on what the port is, then I think it would be better to just adjust this so it also checks $status instead of changing the help file. I don't think there is any real need for $ssl to return $true while not connected.


Invision Support
#Invision on irc.irchighway.net
Re: $ssl - bug [Re: Riamus2] #234641 05/11/11 02:58 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
+1 Riamus2 , you have been understand me what i am trying to say!