diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-30 13:33:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-30 13:33:28 +0000 |
commit | b8a02a2b98e7b0e6a8a54cb140a873039d9c6d3d (patch) | |
tree | 8dd46393de0047d87492a37e4ab057f143153aa8 /src/modules/autoaway | |
parent | b0632a264c7ce0120af88e915a455c3167f1d5c5 (diff) |
- setting thread names;
- warning fixes;
- code cleaning;
- option to disable sounds during idle
git-svn-id: http://svn.miranda-ng.org/main/trunk@692 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/autoaway')
-rw-r--r-- | src/modules/autoaway/autoaway.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/autoaway/autoaway.cpp b/src/modules/autoaway/autoaway.cpp index 764cd3e965..46aadca316 100644 --- a/src/modules/autoaway/autoaway.cpp +++ b/src/modules/autoaway/autoaway.cpp @@ -64,6 +64,14 @@ static int AutoAwayEvent(WPARAM, LPARAM lParam) Proto_SetStatus(pa->szModuleName, ID_STATUS_ONLINE);
} } }
+ if ((lParam&IDF_ISIDLE) && mii.idlesoundsoff && DBGetContactSettingByte(0, "Skin", "UseSound", 1)) {
+ BYTE oldsound = DBGetContactSettingByte(0, "Skin", "UseSound", 1);
+ DBWriteContactSettingByte(NULL, "Skin", "UseSound", 0);
+ DBWriteContactSettingByte(NULL, AA_MODULE, "OldSound", oldsound);
+ }
+ else if (!(lParam & IDF_ISIDLE) && mii.idlesoundsoff)
+ DBWriteContactSettingByte(NULL, "Skin", "UseSound", DBGetContactSettingByte(NULL, AA_MODULE, "OldSound", 1));
+
return 0;
}
|