diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-01-15 13:24:23 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-01-15 13:24:23 +0300 |
| commit | 673975b4ff7067257e8fe4c9b835a9663b6d5178 (patch) | |
| tree | 17483f8faf334ff12b9b5e48e91d279fc2faf37c /protocols/ICQ-WIM/src/server.cpp | |
| parent | c85590b8045696a04392129899a089baca1ce8a0 (diff) | |
fixes #4116 (ICQ: поддержать режим "Invisible")
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
| -rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 91a54ee05e..b41d88dbfd 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -937,7 +937,7 @@ void CIcqProto::SetOwnId(const CMStringW &wszId) void CIcqProto::SetServerStatus(int iStatus)
{
const char *szStatus = "online";
- int invisible = 0;
+ m_bInvisible = false;
switch (iStatus) {
case ID_STATUS_OFFLINE: szStatus = "offline"; break;
@@ -945,11 +945,11 @@ void CIcqProto::SetServerStatus(int iStatus) case ID_STATUS_AWAY:
case ID_STATUS_DND: szStatus = "away"; break;
case ID_STATUS_INVISIBLE:
- invisible = 1;
+ m_bInvisible = true;
}
Push(new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "/presence/setState")
- << AIMSID(this) << CHAR_PARAM("view", szStatus) << INT_PARAM("invisible", invisible));
+ << AIMSID(this) << CHAR_PARAM("view", szStatus) << INT_PARAM("invisible", m_bInvisible));
if (iStatus == ID_STATUS_OFFLINE && !getByte(DB_KEY_PHONEREG)) {
auto *pReq = new AsyncHttpRequest(CONN_NONE, REQUEST_GET, "/aim/endSession", &CIcqProto::OnSessionEnd);
|
