diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_misc.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_misc.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp index 8ad48dd6eb..6fb71eedf7 100644 --- a/protocols/JabberG/src/jabber_misc.cpp +++ b/protocols/JabberG/src/jabber_misc.cpp @@ -445,15 +445,14 @@ void CJabberProto::UpdateMirVer(JABBER_LIST_ITEM *item) Log("JabberUpdateMirVer: for jid %S", item->jid);
- int resource = -1;
+ JABBER_RESOURCE_STATUS *p = NULL;
if (item->resourceMode == RSMODE_LASTSEEN)
- resource = item->lastSeenResource;
+ p = item->pLastSeenResource;
else if (item->resourceMode == RSMODE_MANUAL)
- resource = item->manualResource;
- if ((resource < 0) || (resource >= item->resourceCount))
- return;
+ p = item->pManualResource;
- UpdateMirVer(hContact, &item->resource[resource]);
+ if (p)
+ UpdateMirVer(hContact, p);
}
void CJabberProto::FormatMirVer(JABBER_RESOURCE_STATUS *resource, TCHAR *buf, int bufSize)
|