1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 02:23:24 +01:00

Allow empty notes

This commit is contained in:
jfreegman 2021-11-26 09:03:43 -05:00
parent 090fcfffe3
commit 58d0bd0663
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -656,12 +656,9 @@ void cmd_note(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MA
{
UNUSED_VAR(window);
if (argc < 1) {
line_info_add(self, false, NULL, NULL, SYS_MSG, 0, 0, "Input required.");
return;
}
const char *note = argc >= 1 ? argv[1] : "";
prompt_update_statusmessage(prompt, m, argv[1]);
prompt_update_statusmessage(prompt, m, note);
}
void cmd_nospam(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])