summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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);
}