diff options
-rw-r--r-- | protocols/MSN/src/msn_commands.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp index 05eff0aec3..6e8e3e297e 100644 --- a/protocols/MSN/src/msn_commands.cpp +++ b/protocols/MSN/src/msn_commands.cpp @@ -98,7 +98,7 @@ void CMsnProto::MSN_SetMirVer(MCONTACT hContact, MsnPlace *place) char szVersion[64];
- if (!place) return;
+ if (!place || !place->client) return;
mir_snprintf(szVersion, sizeof(szVersion), "%s (%s)",
MirVerStr[place->client>=sizeof(MirVerStr)/sizeof(MirVerStr[0])?9:place->client-1], place->szClientVer);
setString(hContact, "MirVer", szVersion);
@@ -657,8 +657,7 @@ void CMsnProto::MSN_ProcessNLN(const char *userStatus, const char *wlid, char *u cont->cap2 = end && *end == ':' ? strtoul(end + 1, NULL, 10) : 0;
}
- if (lastStatus == ID_STATUS_OFFLINE)
- MSN_SetMirVer(hContact, cont->places.find((MsnPlace*)&szInst));
+ MSN_SetMirVer(hContact, cont->places.find((MsnPlace*)&szInst));
char *pszUrl, *pszAvatarHash;
if (cmdstring && *cmdstring && mir_strcmp(cmdstring, "0") &&
|