]>
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); |
30a66d6c | 17 | int csa_doreset(void *source, int cargc, char **cargv); |
a03c04b3 | 18 | int csa_dosendpw(void *source, int cargc, char **cargv); |
1dd6d55d | 19 | int csa_dosetmail(void *source, int cargc, char **cargv); |
1dd6d55d | 20 | int csa_dosetpw(void *source, int cargc, char **cargv); |
b3565978 CP |
21 | void authcmds_init(void); |
22 | void authcmds_fini(void); | |
23 | ||
1dd6d55d | 24 | |
25 | void _init() { | |
b3565978 | 26 | authcmds_init(); |
dd258305 | 27 | chanservaddcommand("auth", 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.\nNote: the preferred way to authenticate is to use the /AUTH command.\n"); |
50cd26d6 | 28 | 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"); |
c131e6ed CP |
29 | chanservaddcommand("challenge", QCMD_SECURE | QCMD_NOTAUTHED, 0, csa_dochallenge, "Returns a challenge for use in challengeauth.", "Usage: challenge\nSupplies you with a challenge and a list of algorithms accepted\nfor challenge response authentication, see CHALLENGEAUTH help\nfor more details.\n"); |
30 | chanservaddcommand("challengeauth", QCMD_SECURE | QCMD_NOTAUTHED, 3, csa_dochallengeauth, "Authenticates you on the bot using challenge response.", "Usage: challengeauth <username> <response> <hmac algorithm>\nAuthenticates using challenge response.\nTo generate the response from the challenge, calculate the following:\n HMAC(challenge){k}\nwhere HMAC is the hash message authentication code as described in\nRFC 2104, k is HEXDIGEST(<lower case username>:HEXDIGEST(<password>))\nand HEXDIGEST is the hash function used in the MAC construction.\nFor example code see the website.\n"); | |
85174237 | 31 | chanservaddcommand("checkhashpass", QCMD_OPER, 3, csa_docheckhashpass, "Checks supplied password against a version hashed in the database.", "Used by external services for password verficiation.\n"); |
50cd26d6 | 32 | 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"); |
85174237 | 33 | chanservaddcommand("getpassword", QCMD_OPER, 2, csa_dogetpw, "Gets a users password", "Usage: getpassword <username>\nFetches the password for the specified username.\n"); |
50cd26d6 | 34 | 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"); |
dd258305 | 35 | chanservaddcommand("login", QCMD_SECURE | QCMD_NOTAUTHED | QCMD_ALIAS, 2, csa_doauth, "Authenticates you on the bot.", "Usage: LOGIN <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.\nNote: the preferred way to authenticate is to use the /AUTH command.\n"); |
50cd26d6 | 36 | 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"); |
b7ae0f2c | 37 | chanservaddcommand("requestpassword", QCMD_NOTAUTHED, 1, csa_doreqpw, "Requests the current password by email.", "Usage: REQUESTPASSWORD <email>\nSends your current password to your registered email address, where:\nemail - your registered email address\n"); |
30a66d6c | 38 | chanservaddcommand("reset", QCMD_NOTAUTHED, 2, csa_doreset, "Restores the old details on an account after a change.", "Usage: RESET <username> <code>\nRestores your old email address and password if any of these\nhave recently changed, where the following parameters are:\nusername - your username\ncode - the code received in the RESET email.\n"); |
c1e6c982 | 39 | chanservaddcommand("sendpassword", QCMD_HELPER, 1, csa_dosendpw, "Sends the users current password by email.", "Usage: SENDPASSWORD <username>\nSends the password for the specified account to the specified users email address.\n"); |
85174237 CP |
40 | chanservaddcommand("setemail", QCMD_OPER, 2, csa_dosetmail, "Set the email address.", "Usage: setemail <username> <email address>\nSets the email address for the specified username.\n"); |
41 | chanservaddcommand("setpassword", QCMD_OPER, 2, csa_dosetpw, "Set a new password.", "Usage: setpassword <username> <password>\nSets the password for the specified username.\n"); | |
1dd6d55d | 42 | } |
43 | ||
44 | void _fini() { | |
b3565978 | 45 | authcmds_fini(); |
1dd6d55d | 46 | chanservremovecommand("auth", csa_doauth); |
46d48f37 | 47 | chanservremovecommand("authhistory", csa_doauthhistory); |
0ba70e7b | 48 | chanservremovecommand("challenge", csa_dochallenge); |
b7a95f03 | 49 | chanservremovecommand("challengeauth", csa_dochallengeauth); |
721cc8ce | 50 | chanservremovecommand("checkhashpass", csa_docheckhashpass); |
1dd6d55d | 51 | chanservremovecommand("email", csa_doemail); |
1232a729 | 52 | chanservremovecommand("getpassword", csa_dogetpw); |
1dd6d55d | 53 | chanservremovecommand("hello", csa_dohello); |
54 | chanservremovecommand("login", csa_doauth); | |
55 | chanservremovecommand("newpass", csa_donewpw); | |
1dd6d55d | 56 | chanservremovecommand("requestpassword", csa_doreqpw); |
30a66d6c | 57 | chanservremovecommand("reset", csa_doreset); |
a03c04b3 | 58 | chanservremovecommand("sendpassword", csa_dosendpw); |
1dd6d55d | 59 | chanservremovecommand("setemail", csa_dosetmail); |
1dd6d55d | 60 | chanservremovecommand("setpassword", csa_dosetpw); |
61 | } |