summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-05-30 06:35:29 +0200
committerGravatar default2023-05-30 06:35:29 +0200
commit27218d06d841863586add24930ff6fc3f94d9aed (patch)
tree70f14113e3bab195a58819d102c45bb83d82b6d6 /html.c
parentLog when a poll is closed. (diff)
downloadsnac2-27218d06d841863586add24930ff6fc3f94d9aed.tar.gz
snac2-27218d06d841863586add24930ff6fc3f94d9aed.tar.xz
snac2-27218d06d841863586add24930ff6fc3f94d9aed.zip
Moved "Closed" poll string to where it belongs.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/html.c b/html.c
index 2f92a6c..f5f57ae 100644
--- 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,
939 } 939 }
940 940
941 c = xs_str_cat(c, "</table>\n"); 941 c = xs_str_cat(c, "</table>\n");
942
943 /* if it's *really* closed, say it */
944 if (!xs_is_null(xs_dict_get(msg, "closed"))) {
945 xs *s1 = xs_fmt("<p>%s</p>\n", L("Closed"));
946 c = xs_str_cat(c, s1);
947 }
942 } 948 }
943 else { 949 else {
944 /* poll still active */ 950 /* poll still active */