summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-04 21:26:24 +0100
committerdefault <nobody@localhost>2022-12-04 21:26:24 +0100
commit48ebc54b6eabf16fb5ab34618eb4b4de4f8b5fd7 (patch)
tree861c34d7df89344d605a6cba82093835c3dcfe68 /main.c
parent7787a2ded9a0ab445c9bd310dfc8b909509d763f (diff)
New command line option 'resetpwd'.
Diffstat (limited to 'main.c')
-rw-r--r--main.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/main.c b/main.c
index 8fbdb88..7048426 100644
--- a/main.c
+++ b/main.c
@@ -24,21 +24,10 @@ int usage(void)
printf("queue {basedir} {uid} Processes a user queue\n");
printf("follow {basedir} {uid} {actor} Follows an actor\n");
printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n");
-
-// printf("check {basedir} [{uid}] Checks the database\n");
-
-// printf("update {basedir} {uid} Sends a user update to followers\n");
-// printf("passwd {basedir} {uid} Sets the password for {uid}\n");
-// printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n");
-// printf("mute {basedir} {uid} {actor} Mutes an actor\n");
-// printf("unmute {basedir} {uid} {actor} Unmutes an actor\n");
-// printf("like {basedir} {uid} {url} Likes an url\n");
-// printf("announce {basedir} {uid} {url} Announces (boosts) an url\n");
-// printf("note {basedir} {uid} {'text'} Sends a note to followers\n");
-
printf("request {basedir} {uid} {url} Requests an object\n");
printf("actor {basedir} {uid} {url} Requests an actor\n");
printf("note {basedir} {uid} {'text'} Sends a note to followers\n");
+ printf("resetpwd {basedir} {uid} Resets the password of a user\n");
return 1;
}
@@ -150,6 +139,10 @@ int main(int argc, char *argv[])
return 1;
}
+ if (strcmp(cmd, "resetpwd") == 0) {
+ return resetpwd(&snac);
+ }
+
if (strcmp(cmd, "queue") == 0) {
process_queue(&snac);
return 0;