diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-15 16:28:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-15 16:28:41 +0000 |
commit | 3b2ea215ba88e87ddcc5855796e6c35dff04d705 (patch) | |
tree | 0279ddbced0a2504ab312713cbcbe25c6b9d37e2 | |
parent | 245d244aace5447e09c132e3efac4846ba48e95a (diff) |
CIcqProto::SetNickName must be declared as PS_SETMYNICKNAME
git-svn-id: http://svn.miranda-ng.org/main/trunk@9812 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 1 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.h | 1 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icqosc_svcs.cpp | 13 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/version.h | 2 |
4 files changed, 16 insertions, 1 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index c62740e397..3928a7c64d 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -125,6 +125,7 @@ CIcqProto::CIcqProto(const char* aProtoName, const TCHAR* aUserName) : // Setup services
CreateProtoService(PS_CREATEACCMGRUI, &CIcqProto::OnCreateAccMgrUI);
CreateProtoService(MS_ICQ_SENDSMS, &CIcqProto::SendSms);
+ CreateProtoService(PS_SETMYNICKNAME, &CIcqProto::SetNickName);
CreateProtoService(PS_GETMYAWAYMSG, &CIcqProto::GetMyAwayMsg);
diff --git a/protocols/IcqOscarJ/src/icq_proto.h b/protocols/IcqOscarJ/src/icq_proto.h index a41760eda2..4f89e303e8 100644 --- a/protocols/IcqOscarJ/src/icq_proto.h +++ b/protocols/IcqOscarJ/src/icq_proto.h @@ -117,6 +117,7 @@ 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 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 2a8282501b..18accdf412 100644 --- a/protocols/IcqOscarJ/src/icqosc_svcs.cpp +++ b/protocols/IcqOscarJ/src/icqosc_svcs.cpp @@ -540,6 +540,19 @@ 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);
+}
+
// TODO: Adding needs some more work in general
MCONTACT CIcqProto::AddToListByUIN(DWORD dwUin, DWORD dwFlags)
diff --git a/protocols/IcqOscarJ/src/version.h b/protocols/IcqOscarJ/src/version.h index 969cfdf916..54c9dfc2a5 100644 --- a/protocols/IcqOscarJ/src/version.h +++ b/protocols/IcqOscarJ/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 2
-#define __BUILD_NUM 3
+#define __BUILD_NUM 4
#include <stdver.h>
|