summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-16 09:54:22 +0100
committerdefault <nobody@localhost>2023-12-16 09:54:22 +0100
commitf703a34e3faaa590f131e4afbe698ddba13c8378 (patch)
treeb5f359b6a7564634de58efd3edfdd2c35cd5a653
parentf32c7dd813df6276011f233e06bf465e8865603d (diff)
New cmdline command 'update', to post an update for a user.
Only useful for testing, so it's left undocumented.
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
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;