summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-04 13:30:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-04 13:30:00 +0300
commit448a44b7e45e2fed86c4b8fa9ebb26bf9849304b (patch)
tree896f6d1c140e9639084380bbec59071a788e9119 /protocols/JabberG
parent7df671fa2b5260ab25ec456af143ce66e17a43d5 (diff)
Jabber: setting status to ID_STATUS_IDLE was very bad idea...
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index e10d285b74..df2a582355 100755
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -1572,11 +1572,9 @@ void CJabberProto::OnProcessPresence(const TiXmlElement *node, ThreadData *info)
}
int idleTime = 0;
- if (auto *idle = XmlGetChildByTag(node, "idle", "xmlns", JABBER_FEAT_IDLE)) {
- status = ID_STATUS_IDLE;
+ if (auto *idle = XmlGetChildByTag(node, "idle", "xmlns", JABBER_FEAT_IDLE))
if (auto *szSince = XmlGetAttr(idle, "since"))
idleTime = str2time(szSince);
- }
int priority = XmlGetChildInt(node, "priority");
const char *pszStatus = XmlGetChildText(node, "status");