From f703a34e3faaa590f131e4afbe698ddba13c8378 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 16 Dec 2023 09:54:22 +0100 Subject: [PATCH] New cmdline command 'update', to post an update for a user. Only useful for testing, so it's left undocumented. --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.c b/main.c index 1e30ace..6363184 100644 --- a/main.c +++ b/main.c @@ -210,6 +210,13 @@ int main(int argc, char *argv[]) return deluser(&snac); } + if (strcmp(cmd, "update") == 0) { /** **/ + xs *a_msg = msg_actor(&snac); + xs *u_msg = msg_update(&snac, a_msg); + enqueue_message(&snac, u_msg); + return 0; + } + if (strcmp(cmd, "queue") == 0) { /** **/ process_user_queue(&snac); return 0;