summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r--protocols/Steam/src/steam_proto.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index 00f9579cdb..a6bef00d29 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -86,12 +86,10 @@ CSteamProto::~CSteamProto()
MCONTACT CSteamProto::AddToList(int, PROTOSEARCHRESULT *psr)
{
- MCONTACT hContact = AddContact(_wtoi64(psr->id.w), psr->nick.w, true);
+ uint64_t id = _wtoi64(psr->id.w);
+ MCONTACT hContact = AddContact(id, psr->nick.w, true);
- if (psr->cbSize == sizeof(STEAM_SEARCH_RESULT)) {
- STEAM_SEARCH_RESULT *ssr = (STEAM_SEARCH_RESULT *)psr;
- UpdateContactDetails(hContact, *ssr->data);
- }
+ SendUserInfoRequest(id, true);
return hContact;
}
@@ -280,6 +278,8 @@ int CSteamProto::SetStatus(int new_status)
else if (IsOnline()) {
m_iStatus = new_status;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
+
+ SendPersonaStatus(m_iStatus);
}
return 0;
}