summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_xstatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_xstatus.cpp')
-rw-r--r--protocols/Steam/src/steam_xstatus.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_xstatus.cpp b/protocols/Steam/src/steam_xstatus.cpp
index c67ddf5f6b..b157971331 100644
--- a/protocols/Steam/src/steam_xstatus.cpp
+++ b/protocols/Steam/src/steam_xstatus.cpp
@@ -17,6 +17,14 @@ int CSteamProto::GetContactXStatus(MCONTACT hContact)
return getDword(hContact, "XStatusId", 0) ? 1 : 0;
}
+void SetContactExtraIcon(MCONTACT hContact, int status)
+{
+ char iconName[100];
+ mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, "gaming");
+
+ ExtraIcon_SetIcon(hExtraXStatus, hContact, (status > 0) ? Skin_GetIconHandle(iconName) : NULL);
+}
+
INT_PTR CSteamProto::OnGetXStatusEx(WPARAM wParam, LPARAM lParam)
{
MCONTACT hContact = (MCONTACT)wParam;