diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-15 20:37:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-15 20:37:18 +0300 |
commit | f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65 (patch) | |
tree | a4b22c43caebdccb79969dc95356f8745600d36c /src/utils | |
parent | acc395f67dbe683787f1aeb0bf96fe0a16f62c5e (diff) | |
download | mv-f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65.tar.gz mv-f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65.tar.bz2 mv-f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65.tar.xz mv-f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65.zip |
Allow open server info window from game.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/browserboxtools.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/browserboxtools.cpp b/src/utils/browserboxtools.cpp index 5c7571c97..e3045c9ee 100644 --- a/src/utils/browserboxtools.cpp +++ b/src/utils/browserboxtools.cpp @@ -75,6 +75,12 @@ std::string BrowserBoxTools::replaceLinkCommands(const std::string &link) std::string data = link; + if (strStartWith(data, "http://") || + strStartWith(data, "https://")) + { + return data; + } + if (!link.empty() && link[0] == 'm') { // monster link const BeingTypeId id = static_cast<BeingTypeId>( |