]> jfr.im git - irc/quakenet/newserv.git/blob - chanserv/authcmds/commandlist.c
Added help for most remaining user commands.
[irc/quakenet/newserv.git] / chanserv / authcmds / commandlist.c
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);
7 int csa_doauthhistory(void *source, int cargc, char **cargv);
8 int csa_dochallenge(void *source, int cargc, char **cargv);
9 int csa_dochallengeauth(void *source, int cargc, char **cargv);
10 int csa_docheckhashpass(void *source, int cargc, char **cargv);
11 int csa_doemail(void *source, int cargc, char **cargv);
12 int csa_dogetpw(void *source, int cargc, char **cargv);
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);
16 int csa_doreqpw(void *source, int cargc, char **cargv);
17 int csa_dosetmail(void *source, int cargc, char **cargv);
18 int csa_dosetpw(void *source, int cargc, char **cargv);
19
20 void _init() {
21 chanservaddcommand("auth", QCMD_ALIAS | QCMD_SECURE | QCMD_NOTAUTHED, 2, csa_doauth, "Authenticates you on the bot.", "Usage: AUTH <username> <password>\nAuthenticates you on the bot, where:\nusername - your username\npassword - your password\nIf you do not have a username and password, see HELLO.\nNote: due to the sensitive nature of this command, you must send the message\nto Q@CServe.quakenet.org when using it.\n");
22 chanservaddcommand("authhistory", QCMD_AUTHED, 1, csa_doauthhistory, "View auth history for an account.", "Usage: AUTHHISTORY\nDisplays details of the last 10 logins with your account. Details include\nhostmask, login time, disconnect time and reason.\n");
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.", "Usage: EMAIL <password> <email> <email>\nChanges your register email address. Confirmation of the change will be sent\nboth old and new addresses. Where:\npassword - your password\nemail - new email address. Must be entered exactly the same way twice to avoid\n mistakes.\nNote: due to the sensitive nature of this command, you must send the message \nto Q@CServe.quakenet.org when using it.\n");
27 chanservaddcommand("getpassword", QCMD_OPER, 2, csa_dogetpw, "Gets a users password", "");
28 chanservaddcommand("hello", QCMD_NOTAUTHED, 2, csa_dohello, "Creates a new user account.", "Usage: HELLO <email> <email>\nCreates a new user account for yourself. Your current nickname will be used\nfor the name of the account, and may only contain letters, numbers and \nhyphens (-). An email containing password details will be sent to the email\naddress supplied. Where:\nemail - your email address. Must be entered the same way both times.\n");
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");
30 chanservaddcommand("newpass", QCMD_SECURE | QCMD_AUTHED, 3, csa_donewpw, "Change your password.", "Usage: NEWPASS <oldpassword> <newpassword> <newpassword>\nChanges your account password. Your new password must be at least 6 characters\nlong, contain at least one number and one letter, and may not contain sequences\nof letters or numbers. Your new password will be sent to your registered email\naddress. Where:\noldpassword - your existing account password\nnewpassword - your desired new password. Must be entered the same both times.\nNote: due to the sensitive nature of this command, you must send the message to\nQ@CServe.quakenet.org when using it.\n");
31 chanservaddcommand("requestpassword", QCMD_NOTAUTHED, 2, csa_doreqpw, "Requests the current password by email.", "Usage: REQUESTPASSWORD <username> <email>\nSends your current password to your registered email address, where:\nusername - your username\nemail - your registered email address\n");
32 chanservaddcommand("setemail", QCMD_OPER, 2, csa_dosetmail, "Set the email address.", "");
33 chanservaddcommand("setpassword", QCMD_OPER, 2, csa_dosetpw, "Set a new password.", "");
34 }
35
36 void _fini() {
37 chanservremovecommand("auth", csa_doauth);
38 chanservremovecommand("authhistory", csa_doauthhistory);
39 chanservremovecommand("challenge", csa_dochallenge);
40 chanservremovecommand("challengeauth", csa_dochallengeauth);
41 chanservremovecommand("checkhashpass", csa_docheckhashpass);
42 chanservremovecommand("email", csa_doemail);
43 chanservremovecommand("getpassword", csa_dogetpw);
44 chanservremovecommand("hello", csa_dohello);
45 chanservremovecommand("login", csa_doauth);
46 chanservremovecommand("newpass", csa_donewpw);
47 chanservremovecommand("requestpassword", csa_doreqpw);
48 chanservremovecommand("setemail", csa_dosetmail);
49 chanservremovecommand("setpassword", csa_dosetpw);
50 }