From 46283507e92ad634898717857c3860f28c9baf69 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Feb 2013 12:58:58 +0000 Subject: settings ICQ own nick name from MyDetails corrupts it git-svn-id: http://svn.miranda-ng.org/main/trunk@3418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icqosc_svcs.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'protocols') diff --git a/protocols/IcqOscarJ/src/icqosc_svcs.cpp b/protocols/IcqOscarJ/src/icqosc_svcs.cpp index 11fc36f385..6208a4635c 100644 --- a/protocols/IcqOscarJ/src/icqosc_svcs.cpp +++ b/protocols/IcqOscarJ/src/icqosc_svcs.cpp @@ -635,14 +635,15 @@ INT_PTR CIcqProto::SetMyAvatar(WPARAM wParam, LPARAM lParam) INT_PTR CIcqProto::SetNickName(WPARAM wParam, LPARAM lParam) { - if (icqOnline()) - { - setSettingString(NULL, "Nick", (char*)lParam); + if (!icqOnline()) + return 0; // failure - return ChangeInfoEx(CIXT_BASIC, 0); - } + if (wParam & SMNN_UNICODE) + setSettingStringW(NULL, "Nick", (WCHAR*)lParam); + else + setSettingString(NULL, "Nick", (char*)lParam); - return 0; // Failure + return ChangeInfoEx(CIXT_BASIC, 0); } INT_PTR CIcqProto::SetPassword(WPARAM wParam, LPARAM lParam) -- cgit v1.2.3