diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-21 14:14:10 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-21 14:14:10 (GMT) |
commit | 0a2180bdf1f435178ce9ea547e077b4753d50394 (patch) | |
tree | 83486ec58085390b11ff5c5b1744f80fb82a650f | |
parent | eed31ed4b074fc5ee7ef29d6a1f488d589251659 (diff) | |
download | swift-0a2180bdf1f435178ce9ea547e077b4753d50394.zip swift-0a2180bdf1f435178ce9ea547e077b4753d50394.tar.bz2 |
Use VCard information in Link Local service info.
-rw-r--r-- | Slimber/Server.cpp | 5 |
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()); } |