diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-18 19:32:37 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-18 19:32:37 +0000 |
commit | 30639dcba8b8b57e175aa04e6cbe91ebfad149f2 (patch) | |
tree | fdf859145dfb48e43002bea39c8e6b136e2c5e4b /protocols/Tox | |
parent | 40453965455818d568bf90224b828c3f72b2606d (diff) |
Tox: missed file
git-svn-id: http://svn.miranda-ng.org/main/trunk@12184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_services.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_services.cpp b/protocols/Tox/src/tox_services.cpp new file mode 100644 index 0000000000..f970e5499a --- /dev/null +++ b/protocols/Tox/src/tox_services.cpp @@ -0,0 +1,10 @@ +#include "common.h"
+
+INT_PTR __cdecl CToxProto::SetMyNickname(WPARAM wParam, LPARAM lParam)
+{
+ ptrT nickname((wParam & SMNN_UNICODE) ? mir_u2t((TCHAR*)lParam) : mir_a2t((char*)lParam));
+
+ setTString("Nick", nickname);
+ tox_set_name(tox, (uint8_t*)(char*)ptrA(mir_utf8encodeT(nickname)), mir_tstrlen(nickname));
+ return 0;
+}
|