Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hacker <dd0t@users.sourceforge.net>2010-12-03 16:14:05 +0300
committerStefan Hacker <dd0t@users.sourceforge.net>2010-12-03 16:14:05 +0300
commite8a2bb5ee99e927d86639499a4a64641dd04f562 (patch)
tree0200f7e71a891d5db46dc3b18274e4579999b360 /src/murmur/Register.cpp
parentc857a99c7bc169593506777d90c351b9efda3f8d (diff)
Prepare murmur for user defined server locations
Diffstat (limited to 'src/murmur/Register.cpp')
-rw-r--r--src/murmur/Register.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/murmur/Register.cpp b/src/murmur/Register.cpp
index 3d5bcf71c..704b77e0c 100644
--- a/src/murmur/Register.cpp
+++ b/src/murmur/Register.cpp
@@ -105,6 +105,13 @@ void Server::update() {
t=doc.createTextNode(QString::number(qhChannels.count()));
tag.appendChild(t);
+ if (!qsRegLocation.isEmpty()) {
+ tag=doc.createElement(QLatin1String("location"));
+ root.appendChild(tag);
+ t=doc.createTextNode(qsRegLocation);
+ tag.appendChild(t);
+ }
+
QNetworkRequest qnr(QUrl(QLatin1String("https://mumble.hive.no/register.cgi")));
qnr.setHeader(QNetworkRequest::ContentTypeHeader, QLatin1String("text/xml"));