summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-01 17:01:36 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-03 12:17:42 (GMT)
commitf03b5eee1d92f686f4f2ccc8a0b10c18bac05e72 (patch)
treebd4292069a7c184b752c5228dfa4d94d0fad3f56 /Swift/Controllers
parent7e921ec72997493c5ab06cc13d7cf82bb7e8f643 (diff)
downloadswift-f03b5eee1d92f686f4f2ccc8a0b10c18bac05e72.zip
swift-f03b5eee1d92f686f4f2ccc8a0b10c18bac05e72.tar.bz2
Centralizing predefined features in DiscoInfo.
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/MainController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 5556a00..43817b5 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -239,8 +239,8 @@ void MainController::handleConnected() {
DiscoInfo discoInfo;
discoInfo.addIdentity(DiscoInfo::Identity(CLIENT_NAME, "client", "pc"));
- discoInfo.addFeature("urn:xmpp:sec-label:0");
- discoInfo.addFeature(ChatState::getFeatureNamespace());
+ discoInfo.addFeature(DiscoInfo::ChatStatesFeature);
+ discoInfo.addFeature(DiscoInfo::SecurityLabelsFeature);
client_->getDiscoManager()->setCapsNode(CLIENT_NODE);
client_->getDiscoManager()->setDiscoInfo(discoInfo);