diff options
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/TemplateHTMLBuilder.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index c28831bb8a..a4356760a3 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -198,8 +198,13 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr szNameOut = Utils::dupString(" ");
szNameIn = Utils::dupString(" ");
}
- sprintf(tempStr, "%snoavatar.jpg", tempBase);
- szNoAvatar = Utils::UTF8Encode(tempStr);
+ sprintf(tempStr, "%snoavatar.png", tempBase);
+ szNoAvatar = Utils::UTF8Encode(tempStr);
+ if (access(szNoAvatar, 0) != -1)
+ {
+ sprintf(tempStr, "%snoavatar.jpg", tempBase);
+ szNoAvatar = Utils::UTF8Encode(tempStr);
+ }
szAvatarIn = getAvatar(event->hContact, szRealProto);
if (szAvatarIn == NULL) {
szAvatarIn = Utils::dupString(szNoAvatar);
@@ -369,8 +374,13 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, szNameOut = Utils::dupString(" ");
szNameIn = Utils::dupString(" ");
}
- sprintf(tempStr, "%snoavatar.jpg", tempBase);
- szNoAvatar = Utils::UTF8Encode(tempStr);
+ sprintf(tempStr, "%snoavatar.png", tempBase);
+ szNoAvatar = Utils::UTF8Encode(tempStr);
+ if (access(szNoAvatar, 0) != -1)
+ {
+ sprintf(tempStr, "%snoavatar.jpg", tempBase);
+ szNoAvatar = Utils::UTF8Encode(tempStr);
+ }
if(event->hContact != NULL) {
szAvatarIn = getAvatar(event->hContact, szRealProto);
|