snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 764178fb347375fb151d953f06329e560d5ad6a9
parent 34a2b47e85351a6fcab123ca0124229d5058c47b
Author: default <nobody@localhost>
Date:   Wed,  2 Nov 2022 04:53:50 +0100

Added the @user@host id in the HTML title.

Diffstat:
Mhtml.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/html.c b/html.c @@ -155,7 +155,11 @@ d_char *html_user_header(snac *snac, d_char *s, int local) } { - xs *s1 = xs_fmt("<title>%s</title>\n", xs_dict_get(snac->config, "name")); + xs *s1 = xs_fmt("<title>%s (@%s@%s)</title>\n", + xs_dict_get(snac->config, "name"), + snac->uid, + xs_dict_get(srv_config, "host")); + s = xs_str_cat(s, s1); }