summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index 5befa9c..6c5743f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -313,8 +313,12 @@ static int og_resp_refresh(json_t *data, struct og_client *cli)
return err;
}
- if (status && !strncmp(status, "LINUX", strlen("LINUX"))) {
- cli->status = OG_CLIENT_STATUS_LINUX;
+ if (status) {
+ if (!strncmp(status, "LINUX", strlen("LINUX"))) {
+ cli->status = OG_CLIENT_STATUS_LINUX;
+ } else if (!strncmp(status, "WIN", strlen("WIN"))) {
+ cli->status = OG_CLIENT_STATUS_WIN;
+ }
return 0;
}