diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/JID/JID.h | 5 |
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; |