hirc

IRC client
Log | Files | Refs

commit b089c0480250c7c90b0ee8cca2dfdbc068722cba
parent 2c6a20a3a506c96bad3fda3341ca0bd528de34f4
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 27 Mar 2022 13:30:39 +0100

Make config_get_print print temporarily to selected.history

Diffstat:
Msrc/config.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -1273,13 +1273,13 @@ config_get_print(char *name) { for (i = found = 0; config[i].name; i++) { if (strncmp(config[i].name, name, strlen(name)) == 0) { if (config[i].valtype == Val_string) - hist_format(main_buf, Activity_status, HIST_SHOW, "SELF_UI :%s: %s", + hist_format(selected.history, Activity_status, HIST_SHOW|HIST_TMP|HIST_MAIN, "SELF_UI :%s: %s", config[i].name, config[i].str); else if (config[i].valtype == Val_pair || config[i].valtype == Val_colourpair) - hist_format(main_buf, Activity_status, HIST_SHOW, "SELF_UI :%s: {%ld, %ld}", + hist_format(selected.history, Activity_status, HIST_SHOW|HIST_TMP|HIST_MAIN, "SELF_UI :%s: {%ld, %ld}", config[i].name, config[i].pair[0], config[i].pair[1]); else - hist_format(main_buf, Activity_status, HIST_SHOW, "SELF_UI :%s: %ld", + hist_format(selected.history, Activity_status, HIST_SHOW|HIST_TMP|HIST_MAIN, "SELF_UI :%s: %ld", config[i].name, config[i].num); found = 1; }