summaryrefslogtreecommitdiff
path: root/src/modules/chat/clist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/chat/clist.cpp')
-rw-r--r--src/modules/chat/clist.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/modules/chat/clist.cpp b/src/modules/chat/clist.cpp
index 1400bc8d07..64af00ea2c 100644
--- a/src/modules/chat/clist.cpp
+++ b/src/modules/chat/clist.cpp
@@ -101,9 +101,8 @@ BOOL SetAllOffline(BOOL bHide, const char *pszModule)
return TRUE;
}
-int RoomDoubleclicked(WPARAM wParam, LPARAM lParam)
+int RoomDoubleclicked(WPARAM hContact, LPARAM lParam)
{
- MCONTACT hContact = wParam;
if (!hContact)
return 0;
@@ -139,37 +138,34 @@ INT_PTR EventDoubleclicked(WPARAM wParam,LPARAM lParam)
return RoomDoubleclicked((WPARAM)((CLISTEVENT*)lParam)->hContact, 0);
}
-INT_PTR JoinChat(WPARAM wParam, LPARAM lParam)
+INT_PTR JoinChat(WPARAM hContact, LPARAM lParam)
{
- MCONTACT hContact = wParam;
if (hContact) {
char *szProto = GetContactProto(hContact);
if (szProto) {
if (db_get_w(hContact, szProto, "Status", 0) == ID_STATUS_OFFLINE)
- CallProtoService(szProto, PS_JOINCHAT, wParam, lParam);
+ CallProtoService(szProto, PS_JOINCHAT, hContact, lParam);
else
- RoomDoubleclicked(wParam, 0);
+ RoomDoubleclicked(hContact, 0);
}
}
return 0;
}
-INT_PTR LeaveChat(WPARAM wParam, LPARAM lParam)
+INT_PTR LeaveChat(WPARAM hContact, LPARAM lParam)
{
- MCONTACT hContact = wParam;
if (hContact) {
char *szProto = GetContactProto(hContact);
if (szProto)
- CallProtoService(szProto, PS_LEAVECHAT, wParam, lParam);
+ CallProtoService(szProto, PS_LEAVECHAT, hContact, lParam);
}
return 0;
}
-int PrebuildContactMenu(WPARAM wParam, LPARAM)
+int PrebuildContactMenu(WPARAM hContact, LPARAM)
{
- MCONTACT hContact = wParam;
- if (hContact == NULL)
+ if (hContact == 0)
return 0;
bool bEnabled = false;