snac2

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

commit 27218d06d841863586add24930ff6fc3f94d9aed
parent 32f31e490b028ee6e9d9c4fc8706bba31e11aa88
Author: default <nobody@localhost>
Date:   Tue, 30 May 2023 06:35:29 +0200

Moved "Closed" poll string to where it belongs.

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

diff --git a/html.c b/html.c @@ -939,6 +939,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, } c = xs_str_cat(c, "</table>\n"); + + /* if it's *really* closed, say it */ + if (!xs_is_null(xs_dict_get(msg, "closed"))) { + xs *s1 = xs_fmt("<p>%s</p>\n", L("Closed")); + c = xs_str_cat(c, s1); + } } else { /* poll still active */