From f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 15 Jun 2017 20:37:18 +0300 Subject: Allow open server info window from game. --- src/utils/browserboxtools.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils/browserboxtools.cpp') 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( -- cgit v1.2.3-60-g2f50