summaryrefslogtreecommitdiff
path: root/plugins/MenuItemEx
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-10 21:36:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-10 21:36:54 +0000
commit9c2e0c8b025c98cbff2975e6dd9c86e03cd04244 (patch)
treebd95b8ef2753ef3f2b3701bfe350eb7682794319 /plugins/MenuItemEx
parentf22d8982b41614d703b0db98264e01ef7049a4a0 (diff)
code cleaning for ME_DB_CONTACT_SETTINGCHANGED in plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@2283 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MenuItemEx')
-rw-r--r--plugins/MenuItemEx/src/main.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp
index c96512f956..ce2d7349c4 100644
--- a/plugins/MenuItemEx/src/main.cpp
+++ b/plugins/MenuItemEx/src/main.cpp
@@ -1162,8 +1162,7 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam )
if (DBGetContactSettingByte(hContact, lpzProto, "ChatRoom", 0))
return 0;
- if (oldStatus == ID_STATUS_OFFLINE)
- {
+ if (oldStatus == ID_STATUS_OFFLINE) {
// set logon timestamp for this contact, only when not set already
if (!DBGetContactSettingDword(hContact, lpzProto, "LogonTS", FALSE))
DBWriteContactSettingDword(hContact, lpzProto, "LogonTS", ( DWORD )time(NULL));
@@ -1172,15 +1171,13 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam )
DBDeleteContactSetting(hContact, lpzProto, "LogoffTS");
// TESTING: updating user's details
- if (DBGetContactSettingDword(NULL, VISPLG, "flags", vf_default) & VF_REFRESH)
- {
+ if (DBGetContactSettingDword(NULL, VISPLG, "flags", vf_default) & VF_REFRESH) {
// don't refresh Hidden or NotOnList contact's details
if (!DBGetContactSettingByte(hContact, "CList", "Hidden", 0) && !DBGetContactSettingByte((HANDLE)wParam, "CList", "NotOnList", 0))
CallContactService(hContact, PSS_GETINFO, 0, 0 );
}
}
- if (newStatus == ID_STATUS_OFFLINE)
- {
+ if (newStatus == ID_STATUS_OFFLINE) {
// set logoff timestamp for this contact
DBWriteContactSettingDword(hContact, lpzProto, "LogoffTS", ( DWORD )time(NULL));
// reset logon timestamp