summaryrefslogtreecommitdiff
path: root/src/modules/contacts/contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/contacts/contacts.cpp')
-rw-r--r--src/modules/contacts/contacts.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/modules/contacts/contacts.cpp b/src/modules/contacts/contacts.cpp
index 11180fb52c..a2959909a4 100644
--- a/src/modules/contacts/contacts.cpp
+++ b/src/modules/contacts/contacts.cpp
@@ -492,21 +492,17 @@ static int ContactOptInit(WPARAM wParam, LPARAM)
return 0;
}
-int LoadContactsModule(void) {
- {
- // Load the name order
- BYTE i;
- DBVARIANT dbv;
-
- for (i=0; i<NAMEORDERCOUNT; i++)
- nameOrder[i]=i;
+int LoadContactsModule(void)
+{
+ for (BYTE i=0; i < NAMEORDERCOUNT; i++)
+ nameOrder[i]=i;
- if ( !DBGetContactSetting(NULL, "Contact", "NameOrder", &dbv))
- {
- CopyMemory(nameOrder, dbv.pbVal, dbv.cpbVal);
- DBFreeVariant(&dbv);
- }
+ DBVARIANT dbv;
+ if ( !DBGetContactSetting(NULL, "Contact", "NameOrder", &dbv)) {
+ CopyMemory(nameOrder, dbv.pbVal, dbv.cpbVal);
+ DBFreeVariant(&dbv);
}
+
CreateServiceFunction(MS_CONTACT_GETCONTACTINFO, GetContactInfo);
HookEvent(ME_OPT_INITIALISE, ContactOptInit);
return 0;