diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 11 |
1 files changed, 1 insertions, 10 deletions
| @@ -98,15 +98,6 @@ int main(int argc, char *argv[]) | |||
| 98 | return snac_init(basedir); | 98 | return snac_init(basedir); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | if (strcmp(cmd, "markdown") == 0) { /** **/ | ||
| 102 | /* undocumented, for testing only */ | ||
| 103 | xs *c = xs_readall(stdin); | ||
| 104 | xs *fc = not_really_markdown(c, NULL, NULL); | ||
| 105 | |||
| 106 | printf("<html>\n%s\n</html>\n", fc); | ||
| 107 | return 0; | ||
| 108 | } | ||
| 109 | |||
| 110 | if ((basedir = getenv("SNAC_BASEDIR")) == NULL) { | 101 | if ((basedir = getenv("SNAC_BASEDIR")) == NULL) { |
| 111 | if ((basedir = GET_ARGV()) == NULL) | 102 | if ((basedir = GET_ARGV()) == NULL) |
| 112 | return usage(); | 103 | return usage(); |
| @@ -719,7 +710,7 @@ int main(int argc, char *argv[]) | |||
| 719 | if (strcmp(cmd, "note_unlisted") == 0) | 710 | if (strcmp(cmd, "note_unlisted") == 0) |
| 720 | scope = 2; | 711 | scope = 2; |
| 721 | 712 | ||
| 722 | msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG")); | 713 | msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), NULL); |
| 723 | 714 | ||
| 724 | c_msg = msg_create(&snac, msg); | 715 | c_msg = msg_create(&snac, msg); |
| 725 | 716 | ||