diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-15 16:02:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-15 16:02:38 +0000 |
commit | 245d244aace5447e09c132e3efac4846ba48e95a (patch) | |
tree | e554f4a680942148cbe65cf59c77a9cf3a847e36 /protocols | |
parent | 15521ae2b07f2c14897f1a5dd62674876fe52fa9 (diff) |
useless junk removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9811 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_opts.cpp | 31 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 6 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.h | 2 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icqosc_svcs.cpp | 25 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/utilities.cpp | 3 |
5 files changed, 17 insertions, 50 deletions
diff --git a/protocols/IcqOscarJ/src/icq_opts.cpp b/protocols/IcqOscarJ/src/icq_opts.cpp index 9d64470802..be0a3b5ed5 100644 --- a/protocols/IcqOscarJ/src/icq_opts.cpp +++ b/protocols/IcqOscarJ/src/icq_opts.cpp @@ -149,7 +149,7 @@ static INT_PTR CALLBACK DlgProcIcqOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP GetDlgItemTextA(hwndDlg, IDC_PASSWORD, str, sizeof(ppro->m_szPassword));
if (strlennull(str)) {
strcpy(ppro->m_szPassword, str);
- ppro->m_bRememberPwd = TRUE;
+ ppro->m_bRememberPwd = true;
}
else ppro->m_bRememberPwd = ppro->getByte("RememberPass", 0);
ppro->setString("Password", str);
@@ -165,7 +165,7 @@ static INT_PTR CALLBACK DlgProcIcqOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP StoreDBCheckState(ppro, hwndDlg, IDC_LEGACY, "LegacyFix");
StoreDBCheckState(ppro, hwndDlg, IDC_NOERRMULTI, "IgnoreMultiErrorBox");
ppro->setByte("ShowLogLevel", (BYTE)(4 - SendDlgItemMessage(hwndDlg, IDC_LOGLEVEL, TBM_GETPOS, 0, 0)));
- return TRUE;
+ return true;
}
break;
}
@@ -270,19 +270,17 @@ static INT_PTR CALLBACK DlgProcIcqPrivacyOpts(HWND hwndDlg, UINT msg, WPARAM wPa SAFE_FREE((void**)&buf);
// Send a status packet to notify the server about the webaware setting
- {
- WORD wStatus = MirandaStatusToIcq(ppro->m_iStatus);
+ WORD wStatus = MirandaStatusToIcq(ppro->m_iStatus);
- if (ppro->m_iStatus == ID_STATUS_INVISIBLE) {
- if (ppro->m_bSsiEnabled)
- ppro->updateServVisibilityCode(3);
- ppro->icq_setstatus(wStatus, NULL);
- }
- else {
- ppro->icq_setstatus(wStatus, NULL);
- if (ppro->m_bSsiEnabled)
- ppro->updateServVisibilityCode(4);
- }
+ if (ppro->m_iStatus == ID_STATUS_INVISIBLE) {
+ if (ppro->m_bSsiEnabled)
+ ppro->updateServVisibilityCode(3);
+ ppro->icq_setstatus(wStatus, NULL);
+ }
+ else {
+ ppro->icq_setstatus(wStatus, NULL);
+ if (ppro->m_bSsiEnabled)
+ ppro->updateServVisibilityCode(4);
}
}
return TRUE;
@@ -323,10 +321,7 @@ struct CPTABLE cpTable[] = { static BOOL CALLBACK FillCpCombo(LPSTR str)
{
- int i;
- UINT cp;
-
- cp = atoi(str);
+ UINT i, cp = atoi(str);
for (i = 0; cpTable[i].cpName != NULL && cpTable[i].cpId != cp; i++);
if (cpTable[i].cpName)
ComboBoxAddStringUtf(hCpCombo, cpTable[i].cpName, cpTable[i].cpId);
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index 1b639c526f..c62740e397 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -125,22 +125,22 @@ CIcqProto::CIcqProto(const char* aProtoName, const TCHAR* aUserName) : // Setup services
CreateProtoService(PS_CREATEACCMGRUI, &CIcqProto::OnCreateAccMgrUI);
CreateProtoService(MS_ICQ_SENDSMS, &CIcqProto::SendSms);
- CreateProtoService(PS_SET_NICKNAME, &CIcqProto::SetNickName);
CreateProtoService(PS_GETMYAWAYMSG, &CIcqProto::GetMyAwayMsg);
CreateProtoService(PS_GETINFOSETTING, &CIcqProto::GetInfoSetting);
CreateProtoService(PSS_ADDED, &CIcqProto::SendYouWereAdded);
- // Session password API
- CreateProtoService(PS_ICQ_SETPASSWORD, &CIcqProto::SetPassword);
+
// ChangeInfo API
CreateProtoService(PS_CHANGEINFOEX, &CIcqProto::ChangeInfoEx);
+
// Avatar API
CreateProtoService(PS_GETAVATARINFOT, &CIcqProto::GetAvatarInfo);
CreateProtoService(PS_GETAVATARCAPS, &CIcqProto::GetAvatarCaps);
CreateProtoService(PS_GETMYAVATART, &CIcqProto::GetMyAvatar);
CreateProtoService(PS_SETMYAVATART, &CIcqProto::SetMyAvatar);
+
// Custom Status API
CreateProtoService(PS_SETCUSTOMSTATUSEX, &CIcqProto::SetXStatusEx);
CreateProtoService(PS_GETCUSTOMSTATUSEX, &CIcqProto::GetXStatusEx);
diff --git a/protocols/IcqOscarJ/src/icq_proto.h b/protocols/IcqOscarJ/src/icq_proto.h index 82d10ebc20..a41760eda2 100644 --- a/protocols/IcqOscarJ/src/icq_proto.h +++ b/protocols/IcqOscarJ/src/icq_proto.h @@ -117,8 +117,6 @@ struct CIcqProto : public PROTO<CIcqProto> INT_PTR __cdecl SendSms(WPARAM wParam, LPARAM lParam);
INT_PTR __cdecl SendYouWereAdded(WPARAM wParam, LPARAM lParam);
INT_PTR __cdecl SetMyAvatar(WPARAM wParam, LPARAM lParam);
- INT_PTR __cdecl SetNickName(WPARAM wParam, LPARAM lParam);
- INT_PTR __cdecl SetPassword(WPARAM wParam, LPARAM lParam);
INT_PTR __cdecl SetXStatusEx(WPARAM wParam, LPARAM lParam);
INT_PTR __cdecl ShowXStatusDetails(WPARAM wParam, LPARAM lParam);
diff --git a/protocols/IcqOscarJ/src/icqosc_svcs.cpp b/protocols/IcqOscarJ/src/icqosc_svcs.cpp index 1d6069dd13..2a8282501b 100644 --- a/protocols/IcqOscarJ/src/icqosc_svcs.cpp +++ b/protocols/IcqOscarJ/src/icqosc_svcs.cpp @@ -540,31 +540,6 @@ INT_PTR CIcqProto::SetMyAvatar(WPARAM wParam, LPARAM lParam) return iRet;
}
-INT_PTR CIcqProto::SetNickName(WPARAM wParam, LPARAM lParam)
-{
- if (!icqOnline())
- return 0; // failure
-
- if (wParam & SMNN_UNICODE)
- setTString("Nick", (WCHAR*)lParam);
- else
- setString("Nick", (char*)lParam);
-
- return ChangeInfoEx(CIXT_BASIC, 0);
-}
-
-INT_PTR CIcqProto::SetPassword(WPARAM wParam, LPARAM lParam)
-{
- char *pwd = (char*)lParam;
- int len = strlennull(pwd);
-
- if (len && len < PASSWORDMAXLEN) {
- strcpy(m_szPassword, pwd);
- m_bRememberPwd = TRUE;
- }
- return 0;
-}
-
// TODO: Adding needs some more work in general
MCONTACT CIcqProto::AddToListByUIN(DWORD dwUin, DWORD dwFlags)
diff --git a/protocols/IcqOscarJ/src/utilities.cpp b/protocols/IcqOscarJ/src/utilities.cpp index 9a53b20726..f97e185b1d 100644 --- a/protocols/IcqOscarJ/src/utilities.cpp +++ b/protocols/IcqOscarJ/src/utilities.cpp @@ -1668,8 +1668,7 @@ char* CIcqProto::GetUserPassword(BOOL bAlways) return m_szPassword;
if (GetUserStoredPassword(m_szPassword, sizeof(m_szPassword))) {
- m_bRememberPwd = TRUE;
-
+ m_bRememberPwd = true;
return m_szPassword;
}
|