summaryrefslogtreecommitdiff
path: root/libs/libjson/src/stdafx.cxx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-12-27 19:03:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-12-27 19:03:28 +0300
commit0a5de30626a30971cb99387a0624dc19c53f528a (patch)
tree4adef96ee6984260376098ad8d6d0c44694ff49b /libs/libjson/src/stdafx.cxx
parentb06220b86dbfbe321fdf40332c707891fb30f128 (diff)
Discord: first 100 guild users are fetched from the server
Diffstat (limited to 'libs/libjson/src/stdafx.cxx')
-rw-r--r--libs/libjson/src/stdafx.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/libjson/src/stdafx.cxx b/libs/libjson/src/stdafx.cxx
index a3f9c5951e..53bfa6a9c0 100644
--- a/libs/libjson/src/stdafx.cxx
+++ b/libs/libjson/src/stdafx.cxx
@@ -51,7 +51,12 @@ LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const CHAR_PARAM &param)
JSONNode tmp(JSON_NULL); tmp.set_name(param.szName);
json.push_back(tmp);
}
+ else if (param.szName == nullptr) {
+ JSONNode tmp; tmp.set_name(param.szValue);
+ json.push_back(tmp);
+ }
else json.push_back(JSONNode(param.szName, param.szValue));
+
return json;
}