mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 01:53:02 +01:00
Remove some unnecessary code
This commit is contained in:
parent
6c88be7255
commit
85f9c1241c
@ -482,13 +482,7 @@ void cmd_groupchat(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*arg
|
|||||||
|
|
||||||
char name[TOX_GROUP_MAX_GROUP_NAME_LENGTH];
|
char name[TOX_GROUP_MAX_GROUP_NAME_LENGTH];
|
||||||
|
|
||||||
if (argv[1][0] == '\"') { /* remove opening and closing quotes */
|
snprintf(name, sizeof(name), "%s", argv[1]);
|
||||||
snprintf(name, sizeof(name), "%s", &argv[1][1]);
|
|
||||||
len -= 2;
|
|
||||||
name[len] = '\0';
|
|
||||||
} else {
|
|
||||||
snprintf(name, sizeof(name), "%s", argv[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t nick_length = tox_self_get_name_size(m);
|
size_t nick_length = tox_self_get_name_size(m);
|
||||||
char self_nick[TOX_MAX_NAME_LENGTH + 1];
|
char self_nick[TOX_MAX_NAME_LENGTH + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user