diff options
Diffstat (limited to 'shhhonidle/shhhonidle.c')
-rw-r--r-- | shhhonidle/shhhonidle.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/shhhonidle/shhhonidle.c b/shhhonidle/shhhonidle.c index 90f6235..2398fd3 100644 --- a/shhhonidle/shhhonidle.c +++ b/shhhonidle/shhhonidle.c @@ -13,11 +13,11 @@ PLUGINLINK *pluginLink; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), "Shhh on Idle", - PLUGIN_MAKE_VERSION(0,0,2,0), + PLUGIN_MAKE_VERSION(0,1,0,0), "Disable sounds (and optionally PopUps) when Miranda goes idle", "Scott Ellis", "mail@scottellis.com.au", - "© 2005 Scott Ellis", + "© 2005-2007 Scott Ellis", "http://www.scottellis.com.au/", 0, //not transient 0, //doesn't replace anything built-in @@ -30,6 +30,12 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) return TRUE; } +__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
@@ -56,7 +62,7 @@ WORD saved_status; #define ALARM_ON_TIME (1000 * 60 * 10) // alow sound for 10 mins when an alarm with sound notification is triggered
void EnableSounds(BOOL enable) {
- BOOL enabled = (BOOL)DBGetContactSettingByte(0, "Skin", "UseSound", 1);
+ //BOOL enabled = (BOOL)DBGetContactSettingByte(0, "Skin", "UseSound", 1);
DBWriteContactSettingByte(0, "Skin", "UseSound", enable ? 1 : 0);
}
@@ -136,4 +142,4 @@ int __declspec(dllexport) Unload(void) {
UnhookEvent(hook_idle);
return 0; -}
\ No newline at end of file +}
|