summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-26 11:19:45 +0200
committerdefault <nobody@localhost>2022-09-26 11:19:45 +0200
commitfd6f71bfe36331d046e4183c2c133c6f01c9af2d (patch)
tree2523108550567f4f20d0b3e3d8ec703f09a05c4d /main.c
parentacc467c0346535f9f71b62bf68cbfbea7d1db0ee (diff)
More work but signatures seem to still fail.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8efbc36..eed5ea8 100644
--- a/main.c
+++ b/main.c
@@ -119,7 +119,9 @@ int main(int argc, char *argv[])
if (strcmp(cmd, "announce") == 0) {
xs *msg = msg_admiration(&snac, url, "Announce");
- {
+ if (msg != NULL) {
+ post(&snac, msg);
+
xs *j = xs_json_dumps_pp(msg, 4);
printf("%s\n", j);
}