Feature #3541
closedAdd new identifier $internet
0%
Description
Hello,
This is one of the most wanted identifier in mSL that in the most cases is custom build via sockets/com objects, it would be nice to see that AdiIRC has an core included identifier that the coder can determine if there is an internet connection established or not, it would really be very helpful to see that added, our custom checking internet connection identifiers/methods are having a 3-6 seconds delay and that delay cost very much in our projects, it really will be helpfull to check for internet before starting calling anything and with that identifier will really be able to do because now there isn't any fast way to do that.
Specifications:
$internet - Returns current bandwidth connection with $true if it is established or $false if it's not, on selected network adapter.
Examples:
ON *:DIALOG:test:sclick:1: {
if ($internet) { echo 4 -a You must be connected first to internet! | return }
download adiirc https://adiirc.com/setup64.exe setup.exe
}
alias server {
if (!$internet) { echo 4 You must be connected first to internet! | return }
!server $1-
}
alias url {
if (!$internet) { echo 4 You must be connected first to internet! | return }
!url $1-
}
- Thanks!