diff options
Diffstat (limited to 'protocols/GTalkExt/src/avatar.cpp')
-rw-r--r-- | protocols/GTalkExt/src/avatar.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/GTalkExt/src/avatar.cpp b/protocols/GTalkExt/src/avatar.cpp index 8af3953e98..47d760cf70 100644 --- a/protocols/GTalkExt/src/avatar.cpp +++ b/protocols/GTalkExt/src/avatar.cpp @@ -127,13 +127,12 @@ BOOL InitAvaUnit(BOOL init) hAvaChanged = HookEvent(ME_AV_AVATARCHANGED, AvaChanged);
return hAvaChanged != 0;
}
- else {
- if (hAvaChanged) {
- UnhookEvent(hAvaChanged);
- hAvaChanged = 0;
- }
- return TRUE;
+
+ if (hAvaChanged) {
+ UnhookEvent(hAvaChanged);
+ hAvaChanged = 0;
}
+ return TRUE;
}
void SetAvatar(MCONTACT hContact)
|