]> jfr.im git - irc/quakenet/newserv.git/blame - chanserv/usercmds/commandlist.c
Redo BUILDID stuff for pmake.
[irc/quakenet/newserv.git] / chanserv / usercmds / commandlist.c
CommitLineData
1dd6d55d 1/* Automatically generated by mkcommandlist.pl, do not edit. */
2
3#include "../chanserv.h"
4
5/* Prototypes */
80d2de64
P
6int csa_doaccounthistory(void *source, int cargc, char **cargv);
7int csu_docleanupdb(void *source, int cargc, char **cargv);
1dd6d55d 8int csu_dodeluser(void *source, int cargc, char **cargv);
80d2de64 9int csu_dodomainmode(void *source, int cargc, char **cargv);
1dd6d55d 10int csu_doinfo(void *source, int cargc, char **cargv);
11int csu_dolanguage(void *source, int cargc, char **cargv);
12int csu_dolistflags(void *source, int cargc, char **cargv);
97390b65 13int csu_domaillock(void *source, int cargc, char **cargv);
80d2de64 14int csa_dorollbackaccount(void *source, int cargc, char **cargv);
1dd6d55d 15int csu_dospewdb(void *source, int cargc, char **cargv);
80d2de64 16int csu_dospewdomain(void *source, int cargc, char **cargv);
1dd6d55d 17int csu_dospewemail(void *source, int cargc, char **cargv);
18int csu_dospewpass(void *source, int cargc, char **cargv);
19int csu_dosuspenduser(void *source, int cargc, char **cargv);
20int csu_dosuspenduserlist(void *source, int cargc, char **cargv);
21int csu_dounsuspenduser(void *source, int cargc, char **cargv);
22int csu_dousercomment(void *source, int cargc, char **cargv);
23int csu_douserflags(void *source, int cargc, char **cargv);
80d2de64 24int csu_dowhoami(void *source, int cargc, char **cargv);
1dd6d55d 25int csu_dowhois(void *source, int cargc, char **cargv);
b3565978
CP
26void usercmds_init(void);
27void usercmds_fini(void);
28
1dd6d55d 29
30void _init() {
b3565978 31 usercmds_init();
85174237 32 chanservaddcommand("accounthistory", QCMD_OPER, 1, csa_doaccounthistory, "View password/email history for an account.", "Usage: accounthistory <account>\nShows password/email history for the specified account.\n");
a6f1f6b6 33 chanservaddcommand("cleanupdb", QCMD_DEV, 0, csu_docleanupdb, "Clean up database.", "Usage: cleanupdb\nCleans up inactive accounts, unused accounts and inactive channels.\n");
85174237 34 chanservaddcommand("deluser", QCMD_OPER, 2, csu_dodeluser, "Removes a user from the bot.", "Usage: deluser <username>\nRemoves the specified username from the bot.\n");
94e4d2f4 35 chanservaddcommand("domainmode", QCMD_OPER, 4, csu_dodomainmode, "Set/Unset Mail Domain Modes", "Usage: domainmode <domain> [<flags>]\nViews or modifies the domainmode flags for specified domain.\nFlags consist of:\n +b don't allow email addresses from this domain.\n +u <limit> don't allow more than <limit> accounts to share\n email addresses on this domain.\n +l <limit> don't allow more than <limit> accounts with\n email addresses on this domain.\nNote that domains are hierarchical, so setting +b on org will\nprevent operations from quakenet.org, fish.quakenet.org, etc.\n");
3a744b8f 36 chanservaddcommand("info", QCMD_AUTHED | QCMD_OPER, 2, csu_doinfo, "Shows or changes info line.", "Usage: INFO [<channel>] [<info line>]\nShows or updates your current info line, which can be configured to be displayed\nwhen you join a channel. Where:\nchannel - channel to set info line on. If no channel is specified, your default\n info line will be used. If a channel is specified you must be known\n (+k) on the channel.\ninfo line - new info line to set. If not specified, the current info line will be\n displayed. If \"none\" is specified, the info line will be cleared.\n");
94e4d2f4
CP
37 chanservaddcommand("language", QCMD_AUTHED | QCMD_OPER, 1, csu_dolanguage, "Shows or changes your current language.", "Usage: language [<language code>]\nShows your currently selected language and a list of others\nby default, changes your language when you specify a language code.\n");
38 chanservaddcommand("listflags", QCMD_OPER, 1, csu_dolistflags, "List users with the specified user flags.", "Usage: listflags <flags>\nShows a list of all users with the specified user flags.\n");
97390b65 39 chanservaddcommand("maillock", QCMD_OPER, 3, csu_domaillock, "Set/unset/list mail lock patterns", "Usage: maillock <-list|-add|-del> <pattern> [<reason>]\nManipulates the list of mail lock patterns.\nAny email address matching the pattern will be refused in HELLO/EMAIL.\nA reason is optional for -list, but recommended.\n");
94e4d2f4
CP
40 chanservaddcommand("rollbackaccount", QCMD_OPER, 2, csa_dorollbackaccount, "Roll back password/email changes on an account.", "Usage: rollbackaccount <username> <duration>\nRolls back an account to a previous point, reverting password and email changes.\n");
41 chanservaddcommand("spewdb", QCMD_OPER, 1, csu_dospewdb, "Search for a user in the database.", "Usage: spewdb <pattern>\nDisplays all users with usernames that match the specified pattern.\n");
42 chanservaddcommand("spewdomain", QCMD_OPER, 1, csu_dospewdomain, "Spew Mail Domains.", "Usage: spewdomain <pattern>\nDisplays all mail domains that match the specified pattern.\n");
43 chanservaddcommand("spewemail", QCMD_OPER, 1, csu_dospewemail, "Search for an e-mail in the database.", "Usage: spewdb <pattern>\nDisplays all users with email addresses that match the supplied pattern.\n");
44 chanservaddcommand("spewpass", QCMD_OPER, 1, csu_dospewpass, "Search for a password in the database.", "Usage: spewpass <pattern>\nDisplays all users with a password that matches the specified pattern.\n");
45 chanservaddcommand("suspenduser", QCMD_OPER, 1, csu_dosuspenduser, "Suspend/Delay GLINE/Instantly GLINE a user.", "Usage: suspenduser <username> [<duration>] <reason>\n -nokill <username> [<duration>] <reason>\n -gline <username> [<duration>] <reason>\n -instantgline <username> [<duration>] <reason>\n -password <password> [<duration>] <reason>\n -email <email address> [<duration>] <reason>\nSuspends one or more users, either based on username, email\naddress or password.\nBy default the user will be immediately disconnected unless\nnokill is specified.\ngline will gline the user at some random period of time after\nthey auth, instantgline will gline them the moment they auth.\n");
46 chanservaddcommand("suspenduserlist", QCMD_HELPER, 1, csu_dosuspenduserlist, "Lists suspended/locked users.", "Usage: suspenduserlist <username or pattern>\nDisplays all suspend users with usernames matching the specified pattern,\nor the single user with the specified username.\n");
47 chanservaddcommand("unsuspenduser", QCMD_OPER, 1, csu_dounsuspenduser, "Unsuspend a user.", "Usage: unsuspenduser <username>\nUnsuspends the specified user.\n");
48 chanservaddcommand("usercomment", QCMD_OPER, 2, csu_dousercomment, "Shows or changes staff comment for a user.", "Usage: usercomment <username> [<comment>]\nShows or changes the staff comment for the specified user.\n");
50cd26d6 49 chanservaddcommand("userflags", QCMD_AUTHED, 2, csu_douserflags, "Shows or changes user flags.", "Usage: USERFLAGS <flags>\nChanges your current user flags, where:\nflags - changes to apply, in the usual flag letters preceded by +/- format.\nValid user flags are:\n +n NOTICE - causes the bot to sent you NOTICEs. If this flag is not set the\n bot will communicate using PRIVMSG.\n");
50 chanservaddcommand("whoami", QCMD_AUTHED, 0, csu_dowhoami, "Displays information about you", "Usage: WHOAMI\nDisplays various information about your account.\n");
51 chanservaddcommand("whois", QCMD_AUTHED, 1, csu_dowhois, "Displays information about a user.", "Usage: WHOIS <user>\nDisplays information about a user, where:\nuser - user to request information for, either the nickname of an active user on\n the network or #accountname.\n");
1dd6d55d 52}
53
54void _fini() {
b3565978 55 usercmds_fini();
80d2de64
P
56 chanservremovecommand("accounthistory", csa_doaccounthistory);
57 chanservremovecommand("cleanupdb", csu_docleanupdb);
1dd6d55d 58 chanservremovecommand("deluser", csu_dodeluser);
80d2de64 59 chanservremovecommand("domainmode", csu_dodomainmode);
1dd6d55d 60 chanservremovecommand("info", csu_doinfo);
61 chanservremovecommand("language", csu_dolanguage);
62 chanservremovecommand("listflags", csu_dolistflags);
97390b65 63 chanservremovecommand("maillock", csu_domaillock);
80d2de64 64 chanservremovecommand("rollbackaccount", csa_dorollbackaccount);
1dd6d55d 65 chanservremovecommand("spewdb", csu_dospewdb);
80d2de64 66 chanservremovecommand("spewdomain", csu_dospewdomain);
1dd6d55d 67 chanservremovecommand("spewemail", csu_dospewemail);
68 chanservremovecommand("spewpass", csu_dospewpass);
69 chanservremovecommand("suspenduser", csu_dosuspenduser);
70 chanservremovecommand("suspenduserlist", csu_dosuspenduserlist);
71 chanservremovecommand("unsuspenduser", csu_dounsuspenduser);
72 chanservremovecommand("usercomment", csu_dousercomment);
73 chanservremovecommand("userflags", csu_douserflags);
80d2de64 74 chanservremovecommand("whoami", csu_dowhoami);
1dd6d55d 75 chanservremovecommand("whois", csu_dowhois);
76}