summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_server.cpp')
-rw-r--r--protocols/Steam/src/steam_server.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_server.cpp b/protocols/Steam/src/steam_server.cpp
index 4528ccecfe..f7330dbc49 100644
--- a/protocols/Steam/src/steam_server.cpp
+++ b/protocols/Steam/src/steam_server.cpp
@@ -66,6 +66,21 @@ void CSteamProto::OnMessageSent(const CFriendMessagesSendMessageResponse &reply,
/////////////////////////////////////////////////////////////////////////////////////////
+void CSteamProto::OnGotNotification(const CSteamNotificationNotificationsReceivedNotification &reply, const CMsgProtoBufHeader &hdr)
+{
+ if (hdr.eresult != 1)
+ return;
+
+ debugLogA("got %d notifications", reply.n_notifications);
+
+ for (int i = 0; i < reply.n_notifications; i++) {
+ auto *N = reply.notifications[i];
+ debugLogA("notification type %d: %s", N->notification_type, N->body_data);
+ }
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
void CSteamProto::SendFriendActiveSessions()
{
CFriendsMessagesGetActiveMessageSessionsRequest request;