summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_miranda.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-09-03 14:24:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-09-03 14:24:58 +0300
commit645eb73dfa7a9f8d6fb7698cfab0f2c7a51c0272 (patch)
tree3ae63b34e6876cb0d4efc08b7dc090aedb10411c /plugins/Variables/src/parse_miranda.cpp
parentea1d005b9d8da29f74d91d4b50da6c78682f45d1 (diff)
fixes #2561 (contact() and ccount() functions do not work as intended (Variables plugin))
Diffstat (limited to 'plugins/Variables/src/parse_miranda.cpp')
-rw-r--r--plugins/Variables/src/parse_miranda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp
index 660cac158d..b2687e5490 100644
--- a/plugins/Variables/src/parse_miranda.cpp
+++ b/plugins/Variables/src/parse_miranda.cpp
@@ -81,7 +81,7 @@ static wchar_t* parseContact(ARGUMENTSINFO *ai)
int n = 0;
if (ai->argc == 4) {
- if (*ai->argv.w[3] != 'r') // random contact
+ if (*ai->argv.w[3] == 'r') // random contact
n = -1;
else
n = _wtoi(ai->argv.w[3]) - 1;