From 0a2180bdf1f435178ce9ea547e077b4753d50394 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Tue, 21 Jul 2009 16:14:10 +0200
Subject: Use VCard information in Link Local service info.


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());
 	}
-- 
cgit v0.10.2-6-g49f6