diff options
Diffstat (limited to 'protocols/IcqOscarJ/src')
-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)
|