summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-20 09:39:28 +0200
committerdefault <nobody@localhost>2022-09-20 09:39:28 +0200
commit839cb552f4a42bea5018ce150e85920dbac3f456 (patch)
tree0ce9d561561f358635c5d3f4311d512a28ac90b1 /main.c
parentc30a610a41337e749377f1762edf5603be531f65 (diff)
Added some follower functions.
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.c b/main.c
index 163fd8f..3f94931 100644
--- a/main.c
+++ b/main.c
@@ -11,7 +11,7 @@ int main(int argc, char *argv[])
printf("%s\n", tid());
- srv_open("/home/angel/lib/snac/comam.es");
+ srv_open("/home/angel/lib/snac/comam.es/");
user_open(&snac, "mike");
snac_log(&snac, xs_str_new("ok"));
@@ -22,11 +22,10 @@ int main(int argc, char *argv[])
p = list;
while (xs_list_iter(&p, &uid)) {
- user_open(&snac, uid);
-
- printf("%s (%s)\n", uid, xs_dict_get(snac.config, "name"));
-
- user_free(&snac);
+ if (user_open(&snac, uid)) {
+ printf("%s (%s)\n", uid, xs_dict_get(snac.config, "name"));
+ user_free(&snac);
+ }
}
}