mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 17:43:02 +01:00
Allow empty notes
This commit is contained in:
parent
090fcfffe3
commit
58d0bd0663
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user