1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 22:26:44 +02:00

rm /msg command

This commit is contained in:
Jfreegman
2013-10-18 23:46:58 -04:00
parent 361c4cfafc
commit 0396ce6456
4 changed files with 4 additions and 51 deletions

View File

@ -571,8 +571,9 @@ ToxWindow new_chat(Tox *m, ToxWindow *prompt, int friendnum)
ret.onFileData = &chat_onFileData;
uint8_t name[TOX_MAX_NAME_LENGTH] = {'\0'};
tox_getname(m, friendnum, name);
snprintf(ret.name, sizeof(ret.name), "%s", name);
uint16_t len = tox_getname(m, friendnum, name);
memcpy(ret.name, name, len);
ret.name[TOXIC_MAX_NAME_LENGTH] = '\0';
ChatContext *chatwin = calloc(1, sizeof(ChatContext));
StatusBar *stb = calloc(1, sizeof(StatusBar));