diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-04 12:58:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-04 12:58:58 +0000 |
commit | 46283507e92ad634898717857c3860f28c9baf69 (patch) | |
tree | ae57be6c2009ba5bb0fae8ffe6d1ac7f423c0dae /protocols/IcqOscarJ | |
parent | 351973c482f32feb84b2503f2deaa24ca533dd81 (diff) |
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
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r-- | protocols/IcqOscarJ/src/icqosc_svcs.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
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)
|