summaryrefslogtreecommitdiff
path: root/plugins/Weather/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-26 15:06:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-26 15:06:23 +0300
commit76350d50ef7043a171292d6ec7574ed863af4067 (patch)
tree97d563f4f0ec945e068eef1183c2c7c83aafdf39 /plugins/Weather/src
parent2e2483f97aac9b7b3d6819f434377c093d96e764 (diff)
code cleaning
Diffstat (limited to 'plugins/Weather/src')
-rw-r--r--plugins/Weather/src/weather_userinfo.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/plugins/Weather/src/weather_userinfo.cpp b/plugins/Weather/src/weather_userinfo.cpp
index f2dd115684..76c13c1d24 100644
--- a/plugins/Weather/src/weather_userinfo.cpp
+++ b/plugins/Weather/src/weather_userinfo.cpp
@@ -309,26 +309,23 @@ static INT_PTR CALLBACK DlgProcUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
//
// initialize user info
// lParam = current contact
-int UserInfoInit(WPARAM wParam, LPARAM lParam)
+int UserInfoInit(WPARAM wParam, LPARAM hContact)
{
OPTIONSDIALOGPAGE odp = {};
odp.position = 100000000;
odp.szTitle.a = MODULENAME;
- if (lParam == 0) {
+ if (hContact == 0) {
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO);
odp.pfnDlgProc = DlgProcINIPage;
g_plugin.addUserInfo(wParam, &odp);
}
- else {
- // check if it is a weather contact
- if (IsMyContact(lParam)) {
- // register the contact info page
- odp.pszTemplate = MAKEINTRESOURCEA(IDD_USERINFO);
- odp.pfnDlgProc = DlgProcUIPage;
- odp.flags = ODPF_BOLDGROUPS;
- g_plugin.addUserInfo(wParam, &odp);
- }
+ else if (IsMyContact(hContact)) { // check if it is a weather contact
+ // register the contact info page
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_USERINFO);
+ odp.pfnDlgProc = DlgProcUIPage;
+ odp.flags = ODPF_BOLDGROUPS;
+ g_plugin.addUserInfo(wParam, &odp);
}
return 0;
}