diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-18 15:28:53 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-18 15:28:53 +0000 |
commit | 64e4c45c42ce093c7e6e9a99a5a0938dc212aa59 (patch) | |
tree | 122b2f14bbe70ff575426974fcc947c3e2cc68ac /protocols/Tox/src/tox_svc.cpp | |
parent | b83de880f86db770d7c9b8dea1ac50973962703f (diff) |
added service for nickname changing
git-svn-id: http://svn.miranda-ng.org/main/trunk@12181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_svc.cpp')
-rw-r--r-- | protocols/Tox/src/tox_svc.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_svc.cpp b/protocols/Tox/src/tox_svc.cpp new file mode 100644 index 0000000000..83ea092f36 --- /dev/null +++ b/protocols/Tox/src/tox_svc.cpp @@ -0,0 +1,10 @@ +#include "common.h"
+
+INT_PTR __cdecl CToxProto::SetMyNickname(WPARAM wParam, LPARAM lParam)
+{
+ TCHAR *nickname = (wParam & SMNN_UNICODE) ? mir_u2t((WCHAR*)lParam) : mir_a2t((char*)lParam);
+
+ setTString("Nick", nickname);
+ tox_set_name(tox, (uint8_t*)(char*)_T2A(nickname), mir_tstrlen(nickname));
+ return 0;
+}
|