diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-25 01:42:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-25 01:42:53 +0300 |
commit | 10f59701112130cf953a2af7ef4ae82d9d823fe6 (patch) | |
tree | 32f84fd57dde0e3ace791bae116163659d19170e /src/gui/serverdialog.cpp | |
parent | 4e95f451a793dbac5dbc31361cdc5049de48c3cc (diff) | |
download | manaplus-10f59701112130cf953a2af7ef4ae82d9d823fe6.tar.gz manaplus-10f59701112130cf953a2af7ef4ae82d9d823fe6.tar.bz2 manaplus-10f59701112130cf953a2af7ef4ae82d9d823fe6.tar.xz manaplus-10f59701112130cf953a2af7ef4ae82d9d823fe6.zip |
Add support for register from browser on servers with disabled registration.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 2f0610999..ec97b73c6 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -362,6 +362,7 @@ void ServerDialog::connectToSelectedServer() mServerInfo->type = server.type; mServerInfo->name = server.name; mServerInfo->description = server.description; + mServerInfo->registerUrl = server.registerUrl; mServerInfo->save = true; if (chatLogger) @@ -631,6 +632,11 @@ void ServerDialog::loadServers(const bool addNew) server.description = reinterpret_cast<const char*>( subNode->xmlChildrenNode->content); } + else if (xmlNameEqual(subNode, "registerurl")) + { + server.registerUrl = reinterpret_cast<const char*>( + subNode->xmlChildrenNode->content); + } } server.version.first = gui->getFont()->getWidth(version); @@ -648,6 +654,7 @@ void ServerDialog::loadServers(const bool addNew) mServers[i].name = server.name; mServers[i].version = server.version; mServers[i].description = server.description; + mServers[i].registerUrl = server.registerUrl; mServersListModel->setVersionString(i, version); found = true; break; |