1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-29 07:43:15 +01:00

merge with upstream

This commit is contained in:
Jfreegman
2015-04-07 17:28:12 -04:00
7 changed files with 29 additions and 22 deletions

View File

@@ -225,7 +225,9 @@ void cmd_avatar(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[
get_file_name(filename, sizeof(filename), path);
if (avatar_set(m, path, len) == -1) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Failed to set avatar.");
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0,
"Failed to set avatar. Avatars must be in PNG format and may not exceed %d bytes.",
MAX_AVATAR_FILE_SIZE);
return;
}