diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-03-12 18:47:06 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-03-12 18:47:33 (GMT) |
commit | 66ac08ab9a3e323e5257fffebe13aa1ee83f147e (patch) | |
tree | f90c99f6a8271934c573f9608faa17894a4b8fd7 /Swiften/Avatars | |
parent | 0f81ad517619854d1918e398d287c89fd7653489 (diff) | |
download | swift-contrib-66ac08ab9a3e323e5257fffebe13aa1ee83f147e.zip swift-contrib-66ac08ab9a3e323e5257fffebe13aa1ee83f147e.tar.bz2 |
Allow empty hashes in cache.
Diffstat (limited to 'Swiften/Avatars')
-rw-r--r-- | Swiften/Avatars/AvatarFileStorage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Avatars/AvatarFileStorage.cpp b/Swiften/Avatars/AvatarFileStorage.cpp index 3ff78e4..62dfdf6 100644 --- a/Swiften/Avatars/AvatarFileStorage.cpp +++ b/Swiften/Avatars/AvatarFileStorage.cpp @@ -26,7 +26,7 @@ AvatarFileStorage::AvatarFileStorage(const boost::filesystem::path& avatarsDir, getline(file, line); std::pair<std::string, std::string> r = String::getSplittedAtFirst(line, ' '); JID jid(r.second); - if (jid.isValid() && !r.first.empty()) { + if (jid.isValid()) { jidAvatars.insert(std::make_pair(jid, r.first)); } else { |