]>
Commit | Line | Data |
---|---|---|
1dd6d55d | 1 | /* Automatically generated by mkcommandlist.pl, do not edit. */ |
2 | ||
3 | #include "../chanserv.h" | |
4 | ||
5 | /* Prototypes */ | |
6 | int csa_doauth(void *source, int cargc, char **cargv); | |
46d48f37 | 7 | int csa_doauthhistory(void *source, int cargc, char **cargv); |
0ba70e7b | 8 | int csa_dochallenge(void *source, int cargc, char **cargv); |
b7a95f03 | 9 | int csa_dochallengeauth(void *source, int cargc, char **cargv); |
721cc8ce | 10 | int csa_docheckhashpass(void *source, int cargc, char **cargv); |
1dd6d55d | 11 | int csa_doemail(void *source, int cargc, char **cargv); |
1232a729 | 12 | int csa_dogetpw(void *source, int cargc, char **cargv); |
1dd6d55d | 13 | int csa_dohello(void *source, int cargc, char **cargv); |
14 | int csa_doauth(void *source, int cargc, char **cargv); | |
15 | int csa_donewpw(void *source, int cargc, char **cargv); | |
1dd6d55d | 16 | int csa_doreqpw(void *source, int cargc, char **cargv); |
17 | int csa_dosetmail(void *source, int cargc, char **cargv); | |
1dd6d55d | 18 | int csa_dosetpw(void *source, int cargc, char **cargv); |
19 | ||
20 | void _init() { | |
1f0d7c8b | 21 | chanservaddcommand("auth", QCMD_ALIAS | QCMD_SECURE | QCMD_NOTAUTHED, 2, csa_doauth, "Authenticates you on the bot.", ""); |
22 | chanservaddcommand("authhistory", QCMD_AUTHED, 1, csa_doauthhistory, "View auth history for an account.", ""); | |
23 | chanservaddcommand("challenge", QCMD_SECURE | QCMD_NOTAUTHED, 0, csa_dochallenge, "Returns a challenge for use in challengeauth.", ""); | |
24 | chanservaddcommand("challengeauth", QCMD_SECURE | QCMD_NOTAUTHED, 3, csa_dochallengeauth, "Authenticates you on the bot using challenge response.", ""); | |
25 | chanservaddcommand("checkhashpass", QCMD_OPER, 3, csa_docheckhashpass, "Checks supplied password against a version hashed in the database.", ""); | |
26 | chanservaddcommand("email", QCMD_SECURE | QCMD_AUTHED, 3, csa_doemail, "Change your email address.", ""); | |
1232a729 | 27 | chanservaddcommand("getpassword", QCMD_OPER, 2, csa_dogetpw, "Gets a users password", ""); |
1f0d7c8b | 28 | chanservaddcommand("hello", QCMD_NOTAUTHED, 2, csa_dohello, "Creates a new user account.", ""); |
35227ed4 | 29 | chanservaddcommand("login", QCMD_SECURE | QCMD_NOTAUTHED, 2, csa_doauth, "Authenticates you on the bot.", "Usage: login <username> <password>\nAuthenticates using the supplied username and password.\n"); |
1f0d7c8b | 30 | chanservaddcommand("newpass", QCMD_SECURE | QCMD_AUTHED, 3, csa_donewpw, "Change your password.", ""); |
31 | chanservaddcommand("requestpassword", QCMD_NOTAUTHED, 2, csa_doreqpw, "Requests the current password by email.", ""); | |
32 | chanservaddcommand("setemail", QCMD_OPER, 2, csa_dosetmail, "Set the email address.", ""); | |
33 | chanservaddcommand("setpassword", QCMD_OPER, 2, csa_dosetpw, "Set a new password.", ""); | |
1dd6d55d | 34 | } |
35 | ||
36 | void _fini() { | |
37 | chanservremovecommand("auth", csa_doauth); | |
46d48f37 | 38 | chanservremovecommand("authhistory", csa_doauthhistory); |
0ba70e7b | 39 | chanservremovecommand("challenge", csa_dochallenge); |
b7a95f03 | 40 | chanservremovecommand("challengeauth", csa_dochallengeauth); |
721cc8ce | 41 | chanservremovecommand("checkhashpass", csa_docheckhashpass); |
1dd6d55d | 42 | chanservremovecommand("email", csa_doemail); |
1232a729 | 43 | chanservremovecommand("getpassword", csa_dogetpw); |
1dd6d55d | 44 | chanservremovecommand("hello", csa_dohello); |
45 | chanservremovecommand("login", csa_doauth); | |
46 | chanservremovecommand("newpass", csa_donewpw); | |
1dd6d55d | 47 | chanservremovecommand("requestpassword", csa_doreqpw); |
48 | chanservremovecommand("setemail", csa_dosetmail); | |
1dd6d55d | 49 | chanservremovecommand("setpassword", csa_dosetpw); |
50 | } |