summaryrefslogtreecommitdiff
path: root/protocols/Discord
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-03 12:03:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-03 12:03:15 +0300
commitceb375ad7f99c4169ffb3041037583996122fa57 (patch)
tree2b3b9dc80b67440702f517157372f44bc14ab810 /protocols/Discord
parentc74745a44fa9a3010969cb93878c4471ad6dabec (diff)
.
Diffstat (limited to 'protocols/Discord')
-rw-r--r--protocols/Discord/src/dispatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index b0f0719d60..58baedf4a7 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -116,7 +116,7 @@ static int sttGetPresence(const JSONNode &pStatuses, const CMStringW &wszId)
for (auto it = pStatuses.begin(); it != pStatuses.end(); ++it) {
const JSONNode &s = *it;
- const CMStringW &wszUserId = s["user"]["id"].as_mstring();
+ CMStringW wszUserId = s["user"]["id"].as_mstring();
if (wszUserId == wszId)
return StrToStatus(s["status"].as_mstring());
}