summaryrefslogtreecommitdiff
path: root/otr/options.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-06-01 12:58:06 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-06-01 12:58:06 +0000
commit0d47f648dfe4c38ba4405cfaddd124197336f9f6 (patch)
treed094de930222a6c87e7c3534d52d25faf01189cc /otr/options.cpp
parent06025766fa8a3f7b2ba0c143c0abf633bde41120 (diff)
added an option to reset FINISHED sessions back to plaintext automatically
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@194 4f64403b-2f21-0410-a795-97e2b3489a10
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;