summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());
}