summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-09-06 09:19:02 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-09-06 11:06:49 (GMT)
commit1e2c3461458f4274d539daf51507ce81d845cce0 (patch)
tree9507863b011691f22212d5cc76d484dff1343d36 /Slimber
parente8dbe2e2b78cd5e4a66e2e580e12d05b2e69b120 (diff)
downloadswift-1e2c3461458f4274d539daf51507ce81d845cce0.zip
swift-1e2c3461458f4274d539daf51507ce81d845cce0.tar.bz2
Partial VCard support without losing unknown data.
Diffstat (limited to 'Slimber')
-rw-r--r--Slimber/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Slimber/Server.cpp b/Slimber/Server.cpp
index 7ec3b66..734f3b8 100644
--- a/Slimber/Server.cpp
+++ b/Slimber/Server.cpp
@@ -407,8 +407,8 @@ LinkLocalServiceInfo Server::getLinkLocalServiceInfo(boost::shared_ptr<Presence>
if (!vcard->getNickname().isEmpty()) {
info.setNick(vcard->getNickname());
}
- if (!vcard->getEMail().isEmpty()) {
- info.setEMail(vcard->getEMail());
+ if (!vcard->getPreferredEMailAddress().address.isEmpty()) {
+ info.setEMail(vcard->getPreferredEMailAddress().address);
}
info.setMessage(presence->getStatus());
switch (presence->getShow()) {