summaryrefslogtreecommitdiff
path: root/protocols/Discord
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-31 11:48:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-31 11:48:44 +0300
commitb424db2d01e39a59447f4ed54e98da3d155c6fab (patch)
tree3f12e8f8ae9974de0a9d5ac9893928dab34d6620 /protocols/Discord
parentde62bd9aed937611d196639eb9f1c52487557d16 (diff)
Discord: fix for eternal avatar reload
Diffstat (limited to 'protocols/Discord')
-rw-r--r--protocols/Discord/src/avatars.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp
index 87905e17e1..73f645e34b 100644
--- a/protocols/Discord/src/avatars.cpp
+++ b/protocols/Discord/src/avatars.cpp
@@ -202,6 +202,9 @@ INT_PTR CDiscordProto::SetMyAvatar(WPARAM, LPARAM lParam)
void CDiscordProto::CheckAvatarChange(MCONTACT hContact, const CMStringW &wszNewHash)
{
+ if (wszNewHash.IsEmpty())
+ return;
+
ptrW wszOldAvatar(getWStringA(hContact, DB_KEY_AVHASH));
// if avatar's hash changed, we need to request a new one