summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-21 14:14:10 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-21 14:14:10 (GMT)
commit0a2180bdf1f435178ce9ea547e077b4753d50394 (patch)
tree83486ec58085390b11ff5c5b1744f80fb82a650f /Slimber
parenteed31ed4b074fc5ee7ef29d6a1f488d589251659 (diff)
downloadswift-0a2180bdf1f435178ce9ea547e077b4753d50394.zip
swift-0a2180bdf1f435178ce9ea547e077b4753d50394.tar.bz2
Use VCard information in Link Local service info.
Diffstat (limited to 'Slimber')
-rw-r--r--Slimber/Server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Slimber/Server.cpp b/Slimber/Server.cpp
index b7c7052..ba55403 100644
--- a/Slimber/Server.cpp
+++ b/Slimber/Server.cpp
@@ -268,6 +268,11 @@ LinkLocalServiceInfo Server::getLinkLocalServiceInfo(boost::shared_ptr<Presence>
info.setFirstName(vcard->getGivenName());
info.setLastName(vcard->getFamilyName());
}
+ else if (!vcard->getFullName().isEmpty()) {
+ std::pair<String,String> p = vcard->getFullName().getSplittedAtFirst(' ');
+ info.setFirstName(p.first);
+ info.setLastName(p.second);
+ }
if (!vcard->getNickname().isEmpty()) {
info.setNick(vcard->getNickname());
}