diff options
author | default <nobody@localhost> | 2023-12-16 09:54:22 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-12-16 09:54:22 +0100 |
commit | f703a34e3faaa590f131e4afbe698ddba13c8378 (patch) | |
tree | b5f359b6a7564634de58efd3edfdd2c35cd5a653 | |
parent | f32c7dd813df6276011f233e06bf465e8865603d (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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |