diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -530,14 +530,14 @@ void _timeline_write(snac *snac, char *id, char *msg, char *parent) | |||
| 530 | } | 530 | } |
| 531 | 531 | ||
| 532 | 532 | ||
| 533 | void timeline_add(snac *snac, char *id, char *o_msg, char *parent) | 533 | int timeline_add(snac *snac, char *id, char *o_msg, char *parent) |
| 534 | /* adds a message to the timeline */ | 534 | /* adds a message to the timeline */ |
| 535 | { | 535 | { |
| 536 | xs *pfn = _timeline_find_fn(snac, id); | 536 | xs *pfn = _timeline_find_fn(snac, id); |
| 537 | 537 | ||
| 538 | if (pfn != NULL) { | 538 | if (pfn != NULL) { |
| 539 | snac_log(snac, xs_fmt("timeline_add refusing rewrite %s %s", id, pfn)); | 539 | snac_log(snac, xs_fmt("timeline_add refusing rewrite %s %s", id, pfn)); |
| 540 | return; | 540 | return 0; |
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | xs *msg = xs_dup(o_msg); | 543 | xs *msg = xs_dup(o_msg); |
| @@ -560,6 +560,8 @@ void timeline_add(snac *snac, char *id, char *o_msg, char *parent) | |||
| 560 | _timeline_write(snac, id, msg, parent); | 560 | _timeline_write(snac, id, msg, parent); |
| 561 | 561 | ||
| 562 | snac_log(snac, xs_fmt("timeline_add %s", id)); | 562 | snac_log(snac, xs_fmt("timeline_add %s", id)); |
| 563 | |||
| 564 | return 1; | ||
| 563 | } | 565 | } |
| 564 | 566 | ||
| 565 | 567 | ||