diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-21 20:43:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-21 20:43:46 +0000 |
commit | 6f2c99a32c9e539fc61edb6b836e8805b013a180 (patch) | |
tree | b0108fbaf865ad5dc7522a55f8ca272bf0df7600 /protocols/JabberG | |
parent | 365b792d3509d4e94cdc31ee4384bf458f152e59 (diff) |
- unused constant MIRANDA_IDLE_INFO_SIZE_1 removed;
- proper tracking of autoaway sound options;
- code cleanup for MIRANDA_IDLE_INFO initialization;
git-svn-id: http://svn.miranda-ng.org/main/trunk@4156 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_events.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp index 32e71215ea..4baa572ed0 100644 --- a/protocols/JabberG/src/jabber_events.cpp +++ b/protocols/JabberG/src/jabber_events.cpp @@ -225,11 +225,11 @@ int CJabberProto::OnIdleChanged(WPARAM, LPARAM lParam) }
if (lParam & IDF_ISIDLE) {
- MIRANDA_IDLE_INFO mii = { 0 };
- mii.cbSize = sizeof(mii);
+ MIRANDA_IDLE_INFO mii = { sizeof(mii) };
CallService(MS_IDLE_GETIDLEINFO, 0, (LPARAM)&mii);
m_tmJabberIdleStartTime = time(0) - mii.idleTime * 60;
- } else
- m_tmJabberIdleStartTime = 0;
+ }
+ else m_tmJabberIdleStartTime = 0;
+
return 0;
}
|