mIRC Home    About    Download    Register    News    Help

Print Thread
#234631 05/11/11 12:49 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #234632 05/11/11 01:12 PM
Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
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.

drum #234633 05/11/11 01:17 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #234636 05/11/11 01:58 PM
Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
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

drum #234638 05/11/11 02:16 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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."


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #234640 05/11/11 02:55 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Riamus2 #234641 05/11/11 02:58 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
+1 Riamus2 , you have been understand me what i am trying to say!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard