summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-03-05 19:59:52 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-05 19:59:52 (GMT)
commit3b308419485ce1ad50ee14488595a555777ef731 (patch)
tree244866a563930d8590a5a2f1f4adbad562976bc3 /Swift/Controllers/MainController.cpp
parent651f10eee7bce78b95b61061b9aef6bb4ab81841 (diff)
downloadswift-contrib-3b308419485ce1ad50ee14488595a555777ef731.zip
swift-contrib-3b308419485ce1ad50ee14488595a555777ef731.tar.bz2
Get server disco from server, not bare JID.
Resolves: #859
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r--Swift/Controllers/MainController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 656fe11..b154e93 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -320,7 +320,7 @@ void MainController::handleConnected() {
client_->requestRoster();
- GetDiscoInfoRequest::ref discoInfoRequest = GetDiscoInfoRequest::create(boundJID_.toBare(), client_->getIQRouter());
+ GetDiscoInfoRequest::ref discoInfoRequest = GetDiscoInfoRequest::create(JID(boundJID_.getDomain()), client_->getIQRouter());
discoInfoRequest->onResponse.connect(boost::bind(&MainController::handleServerDiscoInfoResponse, this, _1, _2));
discoInfoRequest->send();