summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r--protocols/Discord/src/server.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp
index 0a55c78de0..5033e5aefd 100644
--- a/protocols/Discord/src/server.cpp
+++ b/protocols/Discord/src/server.cpp
@@ -199,10 +199,15 @@ void CDiscordProto::SetServerStatus(int iStatus)
else {
const char *pszStatus;
switch (iStatus) {
- case ID_STATUS_NA: pszStatus = "idle"; break;
- case ID_STATUS_DND: pszStatus = "dnd"; break;
- case ID_STATUS_INVISIBLE: pszStatus = "invisible"; break;
- default: pszStatus = "online"; break;
+ case ID_STATUS_AWAY:
+ case ID_STATUS_NA:
+ pszStatus = "idle"; break;
+ case ID_STATUS_DND:
+ pszStatus = "dnd"; break;
+ case ID_STATUS_INVISIBLE:
+ pszStatus = "invisible"; break;
+ default:
+ pszStatus = "online"; break;
}
JSONNode root; root << CHAR_PARAM("status", pszStatus);
Push(new AsyncHttpRequest(this, REQUEST_PATCH, "/users/@me/settings", NULL, &root));