summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-29 11:07:38 +0200
committerdefault <nobody@localhost>2023-05-29 11:07:38 +0200
commit765936244888f8d5f1644b0178cc6dc70597166b (patch)
treec7766c1c55748329f0cc4deda0e528bda6845d0c /main.c
parent05ac2a062dc3f01837c511a2d7e2051cda15e44a (diff)
Enqueue a close_question user q_item.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 32952f7..d378598 100644
--- a/main.c
+++ b/main.c
@@ -253,9 +253,10 @@ int main(int argc, char *argv[])
}
if (strcmp(cmd, "question") == 0) { /** **/
+ int end_secs = 5 * 60;
xs *opts = xs_split(url, ";");
- xs *msg = msg_question(&snac, "Poll", opts, 0, 5 * 60);
+ xs *msg = msg_question(&snac, "Poll", opts, 0, end_secs);
xs *c_msg = msg_create(&snac, msg);
if (dbglevel) {
@@ -264,6 +265,7 @@ int main(int argc, char *argv[])
}
enqueue_message(&snac, c_msg);
+ enqueue_close_question(&snac, xs_dict_get(msg, "id"), end_secs);
timeline_add(&snac, xs_dict_get(msg, "id"), msg);