summaryrefslogtreecommitdiff
path: root/otr/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'otr/options.cpp')
-rw-r--r--otr/options.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/otr/options.cpp b/otr/options.cpp
index fd7d5bc..4e8db52 100644
--- a/otr/options.cpp
+++ b/otr/options.cpp
@@ -110,6 +110,7 @@ void LoadOptions() {
strcpy(options.prefix, "OTR: ");
options.delete_history = (DBGetContactSettingByte(0, MODULE, "DeleteHistory", 1) == 1);
+ options.timeout_finished = (DBGetContactSettingByte(0, MODULE, "TimeoutFinished", 0) == 1);
LoadFilenames();
}
@@ -127,6 +128,7 @@ void SaveOptions(ContactPolicyMap *contact_policies) {
DBWriteContactSettingStringUtf(0, MODULE, "Prefix", options.prefix);
DBWriteContactSettingByte(0, MODULE, "DeleteHistory", options.delete_history ? 1 : 0);
+ DBWriteContactSettingByte(0, MODULE, "TimeoutFinished", options.timeout_finished ? 1 : 0);
}
ContactFingerprintMap strlist; // temp storage for fingerprint string pointers
@@ -350,6 +352,7 @@ INT_PTR CALLBACK DlgProcOpts1(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
SendMessage( GetParent( hwndDlg ), PSM_CHANGED, 0, 0 );
return TRUE;
case IDC_CHK_PREFIX:
+ case IDC_CHK_TIMEFINISH:
case IDC_CHK_MSGINLINE:
SendMessage( GetParent( hwndDlg ), PSM_CHANGED, 0, 0 );
return TRUE;