summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_menu.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-11-04 22:42:01 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-11-04 22:42:01 +0000
commit2c54d6e129aa0810010d1a2c004e63057b80fbf8 (patch)
tree92d9d40bf3c57c2a56ab54c15e8a7c58d6bbc9a5 /protocols/MSN/src/msn_menu.cpp
parentcbaa677e46060e481d688884de85bfe7babe5dcd (diff)
MSN:
- minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@15686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_menu.cpp')
-rw-r--r--protocols/MSN/src/msn_menu.cpp25
1 files changed, 3 insertions, 22 deletions
diff --git a/protocols/MSN/src/msn_menu.cpp b/protocols/MSN/src/msn_menu.cpp
index caeeef4fd5..08a9414ebc 100644
--- a/protocols/MSN/src/msn_menu.cpp
+++ b/protocols/MSN/src/msn_menu.cpp
@@ -27,15 +27,14 @@ static HGENMENU hBlockMenuItem, hLiveSpaceMenuItem, hNetmeetingMenuItem, hChatIn
HANDLE hNetMeeting, hBlockCom, hSendHotMail, hInviteChat, hViewProfile;
-/////////////////////////////////////////////////////////////////////////////////////////
// Block command callback function
-
INT_PTR CMsnProto::MsnBlockCommand(WPARAM hContact, LPARAM)
{
if (msnLoggedIn) {
char tEmail[MSN_MAX_EMAIL_LEN];
- if (db_get_static(hContact, m_szModuleName, "wlid", tEmail, sizeof(tEmail)))
- db_get_static(hContact, m_szModuleName, "e-mail", tEmail, sizeof(tEmail));
+ if (db_get_static(hContact, m_szModuleName, "wlid", tEmail, sizeof(tEmail))
+ && db_get_static(hContact, m_szModuleName, "e-mail", tEmail, sizeof(tEmail)))
+ return 0;
if (Lists_IsInList(LIST_BL, tEmail))
delSetting(hContact, "ApparentMode");
@@ -45,9 +44,7 @@ INT_PTR CMsnProto::MsnBlockCommand(WPARAM hContact, LPARAM)
return 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnGotoInbox - goes to the Inbox folder at the live.com
-
INT_PTR CMsnProto::MsnGotoInbox(WPARAM, LPARAM)
{
MCONTACT hContact = MSN_HContactFromEmail(MyOptions.szEmail);
@@ -68,18 +65,14 @@ INT_PTR CMsnProto::MsnSendHotmail(WPARAM hContact, LPARAM)
return 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnSetupAlerts - goes to the alerts section at the live.com
-
INT_PTR CMsnProto::MsnSetupAlerts(WPARAM, LPARAM)
{
MsnInvokeMyURL(false, "http://alerts.live.com");
return 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnViewProfile - view a contact's profile
-
INT_PTR CMsnProto::MsnViewProfile(WPARAM hContact, LPARAM)
{
char buf[64], *cid;
@@ -98,18 +91,14 @@ INT_PTR CMsnProto::MsnViewProfile(WPARAM hContact, LPARAM)
return 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnEditProfile - goes to the Profile section at the live.com
-
INT_PTR CMsnProto::MsnEditProfile(WPARAM, LPARAM)
{
MsnViewProfile(0, 0);
return 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnInviteCommand - invite command callback function
-
INT_PTR CMsnProto::MsnInviteCommand(WPARAM, LPARAM)
{
DialogBoxParam(g_hInst, MAKEINTRESOURCE(IDD_CHATROOM_INVITE), NULL, DlgInviteToChat,
@@ -117,9 +106,7 @@ INT_PTR CMsnProto::MsnInviteCommand(WPARAM, LPARAM)
return 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnRebuildContactMenu - gray or ungray the block menus according to contact's status
-
int CMsnProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM)
{
if (!MSN_IsMyContact(hContact))
@@ -156,9 +143,7 @@ int CMsnProto::OnContactDoubleClicked(WPARAM hContact, LPARAM)
}
#ifdef OBSOLETE
-/////////////////////////////////////////////////////////////////////////////////////////
// MsnSendNetMeeting - Netmeeting callback function
-
INT_PTR CMsnProto::MsnSendNetMeeting(WPARAM wParam, LPARAM)
{
if (!msnLoggedIn) return 0;
@@ -197,9 +182,7 @@ static INT_PTR MsnMenuSendNetMeeting(WPARAM wParam, LPARAM lParam)
return (ppro) ? ppro->MsnSendNetMeeting(wParam, lParam) : 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
// SetNicknameCommand - sets nick name
-
static INT_PTR CALLBACK DlgProcSetNickname(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
@@ -263,9 +246,7 @@ INT_PTR CMsnProto::SetNicknameUI(WPARAM, LPARAM)
}
#endif
-//////////////////////////////////////////////////////////////////////////////////////
// Menus initialization
-
void CMsnProto::MsnInitMainMenu(void)
{
CMenuItem mi;