From 7072cea98da43a109becb5530a12305d1b08cd32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 12 Feb 2011 11:42:54 +0100 Subject: Don't prep JID in toBare(). 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; -- cgit v0.10.2-6-g49f6