diff options
Diffstat (limited to 'src/modules/autoaway/autoaway.cpp')
-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;
}
|