]> jfr.im git - irc/quakenet/newserv.git/blob - chanserv/usercmds/commandlist.c
Re-enabled info lines, with +s override flags.
[irc/quakenet/newserv.git] / chanserv / usercmds / commandlist.c
1 /* Automatically generated by mkcommandlist.pl, do not edit. */
2
3 #include "../chanserv.h"
4
5 /* Prototypes */
6 int csa_doaccounthistory(void *source, int cargc, char **cargv);
7 int csu_docleanupdb(void *source, int cargc, char **cargv);
8 int csu_dodeluser(void *source, int cargc, char **cargv);
9 int csu_dodomainmode(void *source, int cargc, char **cargv);
10 int csu_doinfo(void *source, int cargc, char **cargv);
11 int csu_dolanguage(void *source, int cargc, char **cargv);
12 int csu_dolistflags(void *source, int cargc, char **cargv);
13 int csu_domaillock(void *source, int cargc, char **cargv);
14 int csa_dorollbackaccount(void *source, int cargc, char **cargv);
15 int csu_dospewdb(void *source, int cargc, char **cargv);
16 int csu_dospewdomain(void *source, int cargc, char **cargv);
17 int csu_dospewemail(void *source, int cargc, char **cargv);
18 int csu_dospewpass(void *source, int cargc, char **cargv);
19 int csu_dosuspenduser(void *source, int cargc, char **cargv);
20 int csu_dosuspenduserlist(void *source, int cargc, char **cargv);
21 int csu_dounsuspenduser(void *source, int cargc, char **cargv);
22 int csu_dousercomment(void *source, int cargc, char **cargv);
23 int csu_douserflags(void *source, int cargc, char **cargv);
24 int csu_dowhoami(void *source, int cargc, char **cargv);
25 int csu_dowhois(void *source, int cargc, char **cargv);
26 void usercmds_init(void);
27 void usercmds_fini(void);
28
29
30 void _init() {
31 usercmds_init();
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");
33 chanservaddcommand("cleanupdb", QCMD_DEV, 0, csu_docleanupdb, "Clean up database.", "Usage: cleanupdb\nCleans up inactive accounts, unused accounts and inactive channels.\n");
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");
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");
36 chanservaddcommand("info", QCMD_AUTHED, 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");
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");
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");
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");
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");
52 }
53
54 void _fini() {
55 usercmds_fini();
56 chanservremovecommand("accounthistory", csa_doaccounthistory);
57 chanservremovecommand("cleanupdb", csu_docleanupdb);
58 chanservremovecommand("deluser", csu_dodeluser);
59 chanservremovecommand("domainmode", csu_dodomainmode);
60 chanservremovecommand("info", csu_doinfo);
61 chanservremovecommand("language", csu_dolanguage);
62 chanservremovecommand("listflags", csu_dolistflags);
63 chanservremovecommand("maillock", csu_domaillock);
64 chanservremovecommand("rollbackaccount", csa_dorollbackaccount);
65 chanservremovecommand("spewdb", csu_dospewdb);
66 chanservremovecommand("spewdomain", csu_dospewdomain);
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);
74 chanservremovecommand("whoami", csu_dowhoami);
75 chanservremovecommand("whois", csu_dowhois);
76 }