diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/MetaContacts/meta_options.c | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MetaContacts/meta_options.c')
-rw-r--r-- | plugins/MetaContacts/meta_options.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MetaContacts/meta_options.c b/plugins/MetaContacts/meta_options.c index 6fd6aa47e5..af23243c5e 100644 --- a/plugins/MetaContacts/meta_options.c +++ b/plugins/MetaContacts/meta_options.c @@ -65,7 +65,7 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara CheckDlgButton(hwndDlg, IDC_CHK_SUBHISTORY, options_changes.subhistory ? TRUE : FALSE);
CheckDlgButton(hwndDlg, IDC_CHK_COPYDATA, options_changes.copydata ? TRUE : FALSE);
- if(!options_changes.subcontact_windows) {
+ if (!options_changes.subcontact_windows) {
hw = GetDlgItem(hwndDlg, IDC_CHK_METAHISTORY);
EnableWindow(hw, FALSE);
} else {
@@ -257,7 +257,7 @@ int Meta_WriteOptions(MetaOptions *opt) { DBWriteContactSettingByte(NULL, META_PROTO, "MetaMessageIcon", (BYTE)(opt->flash_meta_message_icon ? 1 : 0));
DBWriteContactSettingByte(NULL, META_PROTO, "CopyUserInfo", (BYTE)(opt->copy_userinfo ? 1 : 0));
- if(!opt->subcontact_windows)
+ if (!opt->subcontact_windows)
DBWriteContactSettingByte(NULL, META_PROTO, "MetaHistory", 1);
else
DBWriteContactSettingByte(NULL, META_PROTO, "MetaHistory", (BYTE)(opt->metahistory ? 1 : 0));
@@ -289,7 +289,7 @@ int Meta_ReadOptions(MetaOptions *opt) { opt->flash_meta_message_icon = (DBGetContactSettingByte(NULL, META_PROTO, "MetaMessageIcon", 1) == 1 ? TRUE : FALSE);
opt->copy_userinfo = (DBGetContactSettingByte(NULL, META_PROTO, "CopyUserInfo", 1) == 1 ? TRUE : FALSE);
- if(!opt->subcontact_windows)
+ if (!opt->subcontact_windows)
opt->metahistory = TRUE;
else
opt->metahistory = (DBGetContactSettingByte(NULL, META_PROTO, "MetaHistory", 1) == 1 ? TRUE : FALSE);
@@ -340,7 +340,7 @@ ProtoStatusPrio *priorities = 0; int GetRealPriority(char *proto, int status) {
char szSetting[256];
- if(!proto) {
+ if (!proto) {
mir_snprintf(szSetting, 256, "DefaultPrio_%d", status);
return DBGetContactSettingWord(0, META_PROTO, szSetting, GetDefaultPrio(status));
} else {
@@ -401,7 +401,7 @@ void WritePriorities() { current = priorities + (i + 1);
for(j = ID_STATUS_OFFLINE; j <= ID_STATUS_OUTTOLUNCH; j++) {
mir_snprintf(szSetting, 256, "ProtoPrio_%s%d", pppDesc[i]->szName, j);
- if(!current->def[j - ID_STATUS_OFFLINE])
+ if (!current->def[j - ID_STATUS_OFFLINE])
DBWriteContactSettingWord(0, META_PROTO, szSetting, (WORD)current->prio[j - ID_STATUS_OFFLINE]);
else
DBDeleteContactSetting(0, META_PROTO, szSetting);
@@ -438,7 +438,7 @@ void SetPriority(int proto_index, int status, BOOL def, int prio) { } else {
current = priorities + (proto_index + 1);
current->def[status - ID_STATUS_OFFLINE] = def;
- if(!def) {
+ if (!def) {
current->prio[status - ID_STATUS_OFFLINE] = prio;
}
}
|