mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03: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
7
main.c
7
main.c
@ -210,6 +210,13 @@ int main(int argc, char *argv[])
|
|||||||
return deluser(&snac);
|
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) { /** **/
|
if (strcmp(cmd, "queue") == 0) { /** **/
|
||||||
process_user_queue(&snac);
|
process_user_queue(&snac);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user