summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_svc.cpp
blob: 83ea092f368ee08e2252c9c2e8f2f2afe95aa465 (plain)
1
2
3
4
5
6
7
8
9
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;
}