1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 04:56:35 +01:00

add friend group invites

This commit is contained in:
Jfreegman
2015-01-23 00:52:09 -05:00
parent 38e55d55b3
commit ff69cdd253
13 changed files with 131 additions and 12 deletions

View File

@@ -400,7 +400,11 @@ int check_file_signature(const char *signature, size_t size, FILE *fp)
void set_window_title(ToxWindow *self, const char *title, int len)
{
char cpy[TOXIC_MAX_NAME_LENGTH + 1];
snprintf(cpy, sizeof(cpy), "%s", title);
if (self->is_groupchat) /* keep groupnumber in title */
snprintf(cpy, sizeof(cpy), "%d %s", self->num, title);
else
snprintf(cpy, sizeof(cpy), "%s", title);
if (len > MAX_WINDOW_NAME_LENGTH) {
strcpy(&cpy[MAX_WINDOW_NAME_LENGTH - 3], "...");