snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit f703a34e3faaa590f131e4afbe698ddba13c8378
parent f32c7dd813df6276011f233e06bf465e8865603d
Author: default <nobody@localhost>
Date:   Sat, 16 Dec 2023 09:54:22 +0100

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

Only useful for testing, so it's left undocumented.

Diffstat:
Mmain.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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;