mIRC Home    About    Download    Register    News    Help

Print Thread
#232769 21/06/11 04:48 AM
Joined: Jun 2011
Posts: 8
L
lcrzoex Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jun 2011
Posts: 8
/sockopen [-de] [bindip] <name> <address> [+]<port>

like /server,
/sockopen server +port opens SSL connection, without -e.

Joined: Apr 2010
Posts: 964
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 964
This seems like a convenience feature request. We have a switch to make the socket an SSL connection, and now that scripts are using it, why change it?

Not to mention, what you are asking can be done in one line of code:
Code:
alias sockopen !sockopen $regsubex($1-,/^((?:-[^ ]*)?)(.*)\+(\d+)$/,$iif(\1,$v1 $+ $iif(e !isin $v1,e),-e) \2 \3)



Last edited by FroggieDaFrog; 21/06/11 07:52 AM.
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995
I'm not fond of overriding built-in commands. There's no reason why +port and -e can't both exist. No scripts broken. This should be added.


Link Copied to Clipboard