summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icqosc_svcs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-15 16:28:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-15 16:28:41 +0000
commit3b2ea215ba88e87ddcc5855796e6c35dff04d705 (patch)
tree0279ddbced0a2504ab312713cbcbe25c6b9d37e2 /protocols/IcqOscarJ/src/icqosc_svcs.cpp
parent245d244aace5447e09c132e3efac4846ba48e95a (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
Diffstat (limited to 'protocols/IcqOscarJ/src/icqosc_svcs.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icqosc_svcs.cpp13
1 files changed, 13 insertions, 0 deletions
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)