From a9f7f8561724b780b9615d3ba5816384800b4637 Mon Sep 17 00:00:00 2001 From: avoidr Date: Sun, 27 Aug 2017 12:27:04 +0200 Subject: [PATCH] /status: give feedback to user on status change --- src/global_commands.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/global_commands.c b/src/global_commands.c index ebc0234..bd8d6ba 100644 --- a/src/global_commands.c +++ b/src/global_commands.c @@ -655,6 +655,9 @@ void cmd_status(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[ msg[len] = '\0'; prompt_update_statusmessage(prompt, m, msg); + line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Your status has been changed to %s: \"%s\".", status_str, msg); + } else { + line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Your status has been changed to %s.", status_str); } finish: