diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-06 23:09:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-06 23:10:07 +0300 |
commit | 3d4f907c1237b1210ae75a9530a82fabda2af484 (patch) | |
tree | 6dd0ed3b2f81e28ccf27707539e37b9cd752dd30 /protocols/Discord/src/utils.cpp | |
parent | 85e72f5e8a819daeb333d38f4ef312b5f49ead6c (diff) |
gateway commands
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 0513e49aac..ce000c0989 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -32,6 +32,12 @@ JSONNode& operator<<(JSONNode &json, const INT_PARAM ¶m) return json; } +JSONNode& operator<<(JSONNode &json, const BOOL_PARAM ¶m) +{ + json.push_back(JSONNode(param.szName, param.bValue)); + return json; +} + JSONNode& operator<<(JSONNode &json, const CHAR_PARAM ¶m) { json.push_back(JSONNode(param.szName, param.szValue)); |