mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 16:16:46 +02:00
set friendnames using api function
This commit is contained in:
@ -226,8 +226,6 @@ static void prompt_onConnectionChange(ToxWindow *self, Tox *m, int friendnum , u
|
||||
if (tox_getname(m, friendnum, nick) == -1)
|
||||
return;
|
||||
|
||||
nick[TOXIC_MAX_NAME_LENGTH] = '\0';
|
||||
|
||||
if (!nick[0])
|
||||
snprintf(nick, sizeof(nick), "%s", UNKNOWN_NAME);
|
||||
|
||||
@ -281,7 +279,6 @@ static void prompt_onGroupInvite(ToxWindow *self, Tox *m, int friendnumber, uint
|
||||
if (tox_getname(m, friendnumber, name) == -1)
|
||||
return;
|
||||
|
||||
name[TOXIC_MAX_NAME_LENGTH] = '\0'; /* enforce client max name length */
|
||||
wprintw(self->window, "\nGroup chat invite from %s.\n", name);
|
||||
|
||||
int ngc = get_num_groupchats();
|
||||
|
Reference in New Issue
Block a user