diff options
author | nicm <nicm> | 2014-04-17 07:55:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-04-17 07:55:43 +0000 |
commit | 2740490e279bac7b01f18cc39aa59a5de09e3a95 (patch) | |
tree | 664689226d287ee21d97062c53fc1ef17464dda1 /cmd-queue.c | |
parent | 877bdb46ed91580a3a4c430bc8c550314301352a (diff) | |
download | rtmux-2740490e279bac7b01f18cc39aa59a5de09e3a95.tar.gz rtmux-2740490e279bac7b01f18cc39aa59a5de09e3a95.tar.bz2 rtmux-2740490e279bac7b01f18cc39aa59a5de09e3a95.zip |
Remove the "info" message mechanism, this was only used for about five
mostly useless and annoying messages. Change those commands to silence
on success like all the others. Still accept the -q command line flag
and "quiet" server option for now.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r-- | cmd-queue.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cmd-queue.c b/cmd-queue.c index caa80afe..7bc154a0 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -86,37 +86,6 @@ cmdq_print(struct cmd_q *cmdq, const char *fmt, ...) va_end(ap); } -/* Show info from command. */ -void printflike2 -cmdq_info(struct cmd_q *cmdq, const char *fmt, ...) -{ - struct client *c = cmdq->client; - va_list ap; - char *msg; - - if (options_get_number(&global_options, "quiet")) - return; - - va_start(ap, fmt); - - if (c == NULL) - /* nothing */; - else if (c->session == NULL || (c->flags & CLIENT_CONTROL)) { - evbuffer_add_vprintf(c->stdout_data, fmt, ap); - - evbuffer_add(c->stdout_data, "\n", 1); - server_push_stdout(c); - } else { - xvasprintf(&msg, fmt, ap); - *msg = toupper((u_char) *msg); - status_message_set(c, "%s", msg); - free(msg); - } - - va_end(ap); - -} - /* Show error from command. */ void printflike2 cmdq_error(struct cmd_q *cmdq, const char *fmt, ...) |