Change message log to be per server rather than per client and include every

command that is run.
This commit is contained in:
Nicholas Marriott
2020-05-06 13:43:22 +01:00
parent c80fc6bf9e
commit 7a95e9bf7e
9 changed files with 92 additions and 76 deletions

View File

@ -436,7 +436,7 @@ status_message_set(struct client *c, const char *fmt, ...)
xvasprintf(&c->message_string, fmt, ap);
va_end(ap);
server_client_add_message(c, "%s", c->message_string);
server_add_message("%s message: %s", c->name, c->message_string);
delay = options_get_number(c->session->options, "display-time");
if (delay > 0) {