From 3b2ea215ba88e87ddcc5855796e6c35dff04d705 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 Jul 2014 16:28:41 +0000 Subject: CIcqProto::SetNickName must be declared as PS_SETMYNICKNAME git-svn-id: http://svn.miranda-ng.org/main/trunk@9812 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icqosc_svcs.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'protocols/IcqOscarJ/src/icqosc_svcs.cpp') 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) -- cgit v1.2.3