diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-30 17:28:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-30 17:28:20 +0000 |
commit | c94076d3dab5538735393d4c97b057b3f7114fb0 (patch) | |
tree | cd17128be0f26e142820930561fc2c475eca54d5 /src/core/stdaway/sendmsg.cpp | |
parent | d543321608763d1ec3b9db1368e6da9cfc73442e (diff) |
IDD_SETAWAYMSG moved to stdaway
git-svn-id: http://svn.miranda-ng.org/main/trunk@1279 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdaway/sendmsg.cpp')
-rw-r--r-- | src/core/stdaway/sendmsg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdaway/sendmsg.cpp b/src/core/stdaway/sendmsg.cpp index d6b9cce901..763d3a41b1 100644 --- a/src/core/stdaway/sendmsg.cpp +++ b/src/core/stdaway/sendmsg.cpp @@ -78,9 +78,9 @@ static const char *StatusModeToDbSetting(int status, const char *suffix) return str;
}
-static bool GetStatusModeByte(int status, const char *suffix)
+static bool GetStatusModeByte(int status, const char *suffix, bool bDefault = false)
{
- return db_get_b(NULL, "SRAway", StatusModeToDbSetting(status, suffix), 0) != 0;
+ return db_get_b(NULL, "SRAway", StatusModeToDbSetting(status, suffix), bDefault) != 0;
}
static void SetStatusModeByte(int status, const char *suffix, BYTE value)
@@ -344,7 +344,7 @@ static int StatusModeChange(WPARAM wParam, LPARAM lParam) if (GetStatusModeByte(statusMode, "Ignore"))
ChangeAllProtoMessages(szProto, statusMode, NULL);
- else if (bScreenSaverRunning || ( !GetAsyncKeyState(VK_CONTROL) && GetStatusModeByte(statusMode, "NoDlg"))) {
+ else if (bScreenSaverRunning || ( !GetAsyncKeyState(VK_CONTROL) && GetStatusModeByte(statusMode, "NoDlg", true))) {
TCHAR *msg = GetAwayMessage(statusMode, szProto);
ChangeAllProtoMessages(szProto, statusMode, msg);
mir_free(msg);
@@ -409,7 +409,7 @@ static INT_PTR CALLBACK DlgProcAwayMsgOpts(HWND hwndDlg, UINT msg, WPARAM wParam }
dat->info[j].ignore = GetStatusModeByte(statusModes[i], "Ignore");
- dat->info[j].noDialog = GetStatusModeByte(statusModes[i], "NoDlg");
+ dat->info[j].noDialog = GetStatusModeByte(statusModes[i], "NoDlg", true);
dat->info[j].usePrevious = GetStatusModeByte(statusModes[i], "UsePrev");
DBVARIANT dbv;
|