summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-18 23:09:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-18 23:09:41 +0300
commit4e993e88b4edaa760f854eacbe02d4c8896a2440 (patch)
tree98f2e85c6e34c46aee0c08beac12a59e88dc820b /protocols/Discord/src/utils.cpp
parent912f1514c3488014ac0174bd533f4bfeb1de0a44 (diff)
Discord:
- fix for reading our own messages typed in another place; - version bump
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r--protocols/Discord/src/utils.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp
index 15246ce46e..e63df2f826 100644
--- a/protocols/Discord/src/utils.cpp
+++ b/protocols/Discord/src/utils.cpp
@@ -32,6 +32,14 @@ JSONNode& operator<<(JSONNode &json, const INT_PARAM &param)
return json;
}
+JSONNode& operator<<(JSONNode &json, const INT64_PARAM &param)
+{
+ char tmp[100];
+ _i64toa_s(param.iValue, tmp, _countof(tmp), 10);
+ json.push_back(JSONNode(param.szName, tmp));
+ return json;
+}
+
JSONNode& operator<<(JSONNode &json, const BOOL_PARAM &param)
{
json.push_back(JSONNode(param.szName, param.bValue));