summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-12 10:42:54 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-12 10:42:54 (GMT)
commit7072cea98da43a109becb5530a12305d1b08cd32 (patch)
tree1ab0e260c1473e8f7bb623609919ba5982039ef7 /Swiften/JID
parent7d323757a6bbd93148fc25b94778e92c4ab3d665 (diff)
downloadswift-contrib-7072cea98da43a109becb5530a12305d1b08cd32.zip
swift-contrib-7072cea98da43a109becb5530a12305d1b08cd32.tar.bz2
Don't prep JID in toBare().
Diffstat (limited to 'Swiften/JID')
-rw-r--r--Swiften/JID/JID.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/JID/JID.h b/Swiften/JID/JID.h
index 0f965f5..76c2606 100644
--- a/Swiften/JID/JID.h
+++ b/Swiften/JID/JID.h
@@ -38,7 +38,10 @@ namespace Swift {
}
JID toBare() const {
- return JID(getNode(), getDomain()); /* FIXME: Duplicate unnecessary nameprepping. Probably ok. */
+ JID result(*this);
+ result.hasResource_ = false;
+ result.resource_ = "";
+ return result;
}
String toString() const;