diff options
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index d2b8f701d3..0a96809354 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -32,6 +32,15 @@ int StrToStatus(const CMStringW &str) ///////////////////////////////////////////////////////////////////////////////////////// +JSONNode& operator<<(JSONNode &json, const SINT64_PARAM ¶m) +{ + char str[40]; + _i64toa(param.iValue, str, 10); + return json << CHAR_PARAM(param.szName, str); +} + +///////////////////////////////////////////////////////////////////////////////////////// + time_t StringToDate(const CMStringW &str) { struct tm T = { 0 }; |