summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-26 10:08:14 +0200
committerdefault <nobody@localhost>2022-09-26 10:08:14 +0200
commitacc467c0346535f9f71b62bf68cbfbea7d1db0ee (patch)
treeaf75679da56d2cd854033f072b15fd252abf2993 /main.c
parentf410e3a40a9943e8c657a886f3c8e343374da45e (diff)
New function msg_admiration().
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.c b/main.c
index acd9ef2..8efbc36 100644
--- a/main.c
+++ b/main.c
@@ -116,6 +116,17 @@ int main(int argc, char *argv[])
if ((url = GET_ARGV()) == NULL)
return usage();
+ if (strcmp(cmd, "announce") == 0) {
+ xs *msg = msg_admiration(&snac, url, "Announce");
+
+ {
+ xs *j = xs_json_dumps_pp(msg, 4);
+ printf("%s\n", j);
+ }
+
+ return 0;
+ }
+
if (strcmp(cmd, "request") == 0) {
int status;
xs *data = NULL;