]> jfr.im git - irc/quakenet/newserv.git/blame - chanserv/usercmds/cleanupdb.c
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / chanserv / usercmds / cleanupdb.c
CommitLineData
7ac9dbae
P
1/* Automatically generated by refactor.pl.
2 *
3 *
4 * CMDNAME: cleanupdb
85174237 5 * CMDLEVEL: QCMD_DEV
7ac9dbae 6 * CMDARGS: 0
85174237 7 * CMDDESC: Clean up database.
7ac9dbae
P
8 * CMDFUNC: csu_docleanupdb
9 * CMDPROTO: int csu_docleanupdb(void *source, int cargc, char **cargv);
85174237 10 * CMDHELP: Usage: cleanupdb
a6f1f6b6 11 * CMDHELP: Cleans up inactive accounts, unused accounts and inactive channels.
7ac9dbae
P
12 */
13
14#include "../chanserv.h"
15#include "../../lib/irc_string.h"
16#include <stdio.h>
17#include <string.h>
18
511881d6 19int csu_docleanupdb(void *source, int cargc, char **cargv) {
46542548 20 nick *np = (nick *)source;
511881d6 21
46542548 22 cs_cleanupdb(np);
80d2de64 23 return CMD_OK;
7ac9dbae 24}