New cmdline command 'update', to post an update for a user.

Only useful for testing, so it's left undocumented.
This commit is contained in:
default 2023-12-16 09:54:22 +01:00
parent f32c7dd813
commit f703a34e3f

7
main.c
View File

@ -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;