mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
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:
parent
f32c7dd813
commit
f703a34e3f
1 changed files with 7 additions and 0 deletions
7
main.c
7
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;
|
||||
|
|
Loading…
Reference in a new issue